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

NAME

6       cross_product,  cross_product_f - Calculates the cross product. Allegro
7       game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void cross_product(fixed x1, y1, z1, x2, y2, z2, *xout, *yout, *zout);
14
15       void cross_product_f(float x1,  y1,  z1,  x2,  y2,  z2,  *xout,  *yout,
16       *zout);
17

DESCRIPTION

19       Calculates  the  cross product (x1, y1, z1) x (x2, y2, z2), storing the
20       result in (*xout, *yout, *zout). The cross product is perpendicular  to
21       both  of  the input vectors, so it can be used to generate polygon nor‐
22       mals.
23
24

SEE ALSO

26       dot_product(3), polygon_z_normal(3), normalize_vector(3), exstars(3)
27
28
29
30Allegro                          version 4.4.3                cross_product(3)
Impressum