.\" Generated by the Allegro makedoc utility .TH cross_product 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME cross_product, cross_product_f \- Calculates the cross product. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void cross_product(fixed x1, y1, z1, x2, y2, z2, *xout, *yout, *zout); .B void cross_product_f(float x1, y1, z1, x2, y2, z2, *xout, *yout, *zout); .SH 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. .SH SEE ALSO .BR dot_product (3alleg4), .BR polygon_z_normal (3alleg4), .BR normalize_vector (3alleg4), .BR exstars (3alleg4)