vector_length, vector_length_f
Calculates the length of a vector. Allegro game programming library.
- Provided by: allegro4-doc (Version: 2:4.4.3.1-2)
- Source: allegro4.4
- Report a bug
Calculates the length of a vector. Allegro game programming library.
#include <allegro.h>
fixed vector_length(fixed x, fixed y, fixed z);
float vector_length_f(float x, float y, float z);
Calculates the length of the vector (x, y, z), using that good 'ole Pythagoras theorem.
normalize_vector(3alleg4)