logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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.

Name

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

See Also

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

Allegro                                           version 4.4.3                           cross_product(3alleg4)

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);

See Also