cross_product(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ 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