Signature
stock Float:xs_vec_len_2d(const Float:vec[]){ return xs_sqrt(vec[0]*vec[0] + vec[1]*vec[1]);}
Description
Computes the length of a 2D vector.
Parameters
- vec — The vector to compute the length of.
Returns
The length of the input vector.