S3D_VECTOR_CROSS_PRO(3)

✨ S3D_VECTOR_CROSS_PRO(3) ✨

okay bestie, we're in the s3d manual section, and this page is literally about one tiny lil function that does one big math thing πŸ’–


πŸŽ€ NAME πŸŽ€

s3d_vector_cross_product β€” calculate the cross product of two vectors


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <s3d.h>

void s3d_vector_cross_product(const float vector1[],
                              const float vector2[],
                              float result_vector[]);

🌸 DESCRIPTION 🌸

So the way this works is: it calculates the cross product of vector1 and vector2, and hands you back the answer. Periodt. ✨

ngl, all the vectors here have to be in the format float[3] β€” like, all three of them, no exceptions, no cap.

Want more info? it's giving wikipedia, lowkey:

http://en.wikipedia.org/wiki/Vector_(spatial)


πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich

  • Author of s3d

ok that's the whole page bestie, it's a short one but it ate πŸ’…

this was the s3d manual's take on S3D_VECTOR_CROSS_PRO(3) β€” and for the record, the original footer doesn't give us a date, so no date reveal today, sorry 🫢 it's just the s3d source and the manual name chillin' at the bottom. byeee πŸ’–πŸ¦‹βœ¨