cross_product(3)
β¨ NAME β¨
cross_product, cross_product_f β bestie, we're calculating the cross product π
and this whole thing lives in the Allegro game programming library π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void cross_product(fixed x1, y1, z1, x2, y2, z2, *xout, *yout, *zout);
void cross_product_f(float x1, y1, z1, x2, y2, z2, *xout, *yout, *zout);
π¦ DESCRIPTION π¦
okay so picture this: you got two vectors and you wanna know what's perpendicular to both of them?? that's literally the whole vibe here β¨
cross_product calculates the cross product (x1, y1, z1) x (x2, y2, z2), and it stores the result in (*xout, *yout, *zout). no cap, that's it.
and the way that the cross product is perpendicular to both of the input vectors?? that's the whole reason it can be used to generate polygon normals π so yeah, iconic behaviour fr fr π
π SEE ALSO π
and that's the whole page bestie π«Ά this lil masterpiece is brought to you by Allegro, version 4.4.3, and it's giving cross_product(3) energy all day every day π
β¨ mwah, slay, periodt π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms