Provided by: liballegro-doc_4.2.2-3_all

**NAME**

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

**SYNOPSIS**

#include<allegro.h>voidcross_product(fixedx1,y1,z1,x2,y2,z2,*xout,*yout,*zout);voidcross_product_f(floatx1,y1,z1,x2,y2,z2,*xout,*yout,*zout);

**DESCRIPTION**

Calculates the cross product (x1, y1, z1) x (x2, y2, z2), storing the result in (*xout, *yout, *zout). The cross product is perpendicular to both of the input vectors, so it can be used to generate polygon normals.

**SEE** **ALSO**

dot_product(3alleg),polygon_z_normal(3alleg),normalize_vector(3alleg),exstars(3alleg)