DOKK / manpages / debian 11 / s3d-doc / s3d_vector_length.3.en
S3D_VECTOR_LENGTH(3) s3d Manual S3D_VECTOR_LENGTH(3)

s3d_vector_length - calculate length of vector

#include <s3d.h>

float s3d_vector_length(const float vector[]);

Calculates and returns the length of the given vector (which should be of the type float[3]). More info on wikipedia http://en.wikipedia.org/wiki/Vector_(spatial)

Simon Wunderlich

Author of s3d
s3d