1vector_length(3) Allegro manual vector_length(3)
23
4
NAME
6vector_length, vector_length_f - Calculates the length of a vector.
7Allegro game programming library.
8
SYNOPSIS
10#include <allegro.h>
1112
13
fixed vector_length(fixed x, fixed y, fixed z);
1415
float vector_length_f(float x, float y, float z);
16
DESCRIPTION
18Calculates the length of the vector (x, y, z), using that good 'ole
19Pythagoras theorem.
2021
SEE ALSO
23normalize_vector(3)
2425
26
27
Allegro version 4.4.2 vector_length(3)