1normalize_vector(3)             Allegro manual             normalize_vector(3)
2
3
4

NAME

6       normalize_vector,  normalize_vector_f  -  Converts the vector to a unit
7       vector. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void normalize_vector(fixed *x, fixed *y, fixed *z);
14
15       void normalize_vector_f(float *x, float *y, float *z);
16

DESCRIPTION

18       Converts the vector (*x, *y, *z) to a unit vector. This points  in  the
19       same direction as the original vector, but has a length of one.
20
21

SEE ALSO

23       vector_length(3), dot_product(3), cross_product(3), exstars(3)
24
25
26
27Allegro                          version 4.4.3             normalize_vector(3)
Impressum