vec_magnitude, vec_magnitude2d - calculate magnitude (length) of a vector |
#include <matvec.h> float vec_magnitude (const float *v); float vec_magnitude2d (const float *v); |
vec_magnitude calculates the magnitude (length) of a 3D vector. vec_magnitude2d calculates the magnitude of a 2D vector. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
c2lib-1.2.13 |
vec_normalize(3), vec_normalize2d(3). |