Function | Description |
---|---|
xs_log | **** DEBUGGING / LOGING FUNCTIONS ***** |
xs_assertfunc | This function has no description. |
xs_sign | Gets the sign of a value. |
xs_fsign | Gets the sign of a float value. |
xs_abs | Gets the absolute value of a number. |
xs_is_2power | Checks if the number is a power of 2. |
xs_deg2rad | Converts degrees to radians. |
xs_rad2deg | Converts radians to degrees. |
xs_gra2rad | Converts gradians to radians. |
xs_rad2gra | Converts radians to gradians. |
xs_rsqrt | Calculates the reciprocal of the square root of the input value. |
xs_sqrt | Calculates the square root of the input value. |
xs_fabs | This function has no description. |
xs_asin | This function has no description. |
xs_sin | This function has no description. |
xs_acos | This function has no description. |
xs_cos | This function has no description. |
xs_atan | This function has no description. |
xs_atan2 | This function has no description. |
xs_tan | This function has no description. |
This function has no description. | |
xs_seed | Sets the seed for the random number generation. |
xs_irand | Retrieves a random integer. |
xs_frand | Retrieves a random float. |
xs_irand_range | Retrieves a random integer between the specified values. |
xs_vec_set | Sets vector's components to specified values. |
xs_vec_add | Adds two vectors. |
xs_vec_sub | Subtracts one vector from another one. |
xs_vec_equal | Checks if two vectors are equal. |
xs_vec_nearlyequal | Checks if two vectors are nearly equal. |
xs_vec_mul_scalar | Multiply a vector by a scalar value. |
xs_vec_div_scalar | Divide a vector by a scalar value. |
xs_vec_len | Computes the length of a vector. |
xs_vec_normalize | Normalizes a vector. Normalized vector is a vector with the length of 1 unit, but with the same direction as the original vector. |
xs_vec_cross | Computes the cross product of two vectors. |
xs_vec_dot | Computes the dot product of two vectors. |
xs_vec_neg | Negates a vector. |
xs_vec_copy | Copies a vector into another one. |
xs_vec_angle | Computes the angle between two vectors. |
xs_vec_reflect | Reflects a vector about a normal. |
xs_vec_make2d | Turns a 3D vector into a 2D vector. |
xs_plane_set | Sets a plane to the specified values. |
xs_plane_3p | Constructs a plane out of 4 points in space. |
xs_plane_equal | Checks if two planes are equal. |
xs_plane_nearlyequal | Checks if two planes are nearly equal. |
xs_plane_dst2point | Computes the distance between a plane and a point. |
xs_plane_rayintersect | Checks whether a plane intersects with the ray starting at @rayStart and going to @rayDir direction. If it does intersect, outputs the intersection point in @out. |
xs_point_onplane | Checks if a point is on a specified plane. |
xs_projpoint_onplane | Projects a point on the plane. Stores the projected point in @out. |
xs_plane_copy | Copies a plane. |
xs_anglevectors | Computes forward, right and up vectors from given angles. |
xs_strchr | Finds a character in a string and returns its position in the string. |
xs_strtrim | Remove @charstotrim number of characters from @stringtotrim, either from the beginning or the end of the string. |
xs_strmid | Copies characters from @oldmsg to @newmsg, starting at @start and ending at @end (includes the end character). |
xs_explode | "Explodes" a string, breaking it at the @delimeter character and putting each exploded part into the @output array. |
xs_implode | The opposite of xs_explode(). Takes an array of strings and puts them together in a single string, delimeted by the @delimeter character. |
xs_replace | Replaces all occurencies of @what in @text with @with. |
xs_replace_char | Replaces all occurencies of @what character in @text with @with character. |
xs_concmd_name | Retrieves the name of a command identified by its ID. |
xs_freevisibleslots | Checks whether there are at least @num free visible slots. |
xs_get_maxnum | Returns the biggest possible positive number. |
xs_get_minnum | Returns the smallest possible negative number. |
xs_get_maxmessages | This function has no description. |
xs_is_msg_valid | This function has no description. |
xs_find_freetaskid | **** MANAGED TASKS ***** |
xs_task_begin | This function has no description. |
xs_task_pushint | This function has no description. |
xs_task_pushfl | This function has no description. |
xs_task_pushstr | This function has no description. |
xs_task_end | This function has no description. |
xs__task_setup | This function has no description. |
xs_task_readid | This function has no description. |
xs_task_paramcount | This function has no description. |
xs_task_paramtype | This function has no description. |
xs_task_paramint | This function has no description. |
xs_task_paramfl | This function has no description. |
xs_task_paramstr | This function has no description. |
xs_vec_add_scaled | Adds the second vector scaled by a scalar to the first. |
xs_vec_sub_scaled | Subtracts the second vector scaled by a scalar from the first one. |
xs_vec_len_2d | Computes the length of a 2D vector. |
xs_vec_distance | Computes the distance between two vectors (points). |
xs_vec_distance_2d | Computes the distance between two 2D vectors (points). |