S3D_VECTOR_DOT_PRODU(3)

✨ NAME ✨

s3d_vector_dot_product β€” bestie, this one calculates the dot product of two vectors πŸ’– like it's literally math but make it cute


πŸŽ€ SYNOPSIS πŸŽ€

#include <s3d.h>

float s3d_vector_dot_product(const float vector1[],
                             const float vector2[]);

🌸 DESCRIPTION 🌸

okay so listen πŸ‘‘ this function calculates and returns the dot product of vector1 and vector2. that's it, that's the whole vibe, no cap 🫢

one thing tho β€” all vectors should have the format float[3] πŸ’… like exactly three floats, that's the rule, we don't make the rules we just follow them.

more info on wikipedia: http://en.wikipedia.org/wiki/Vector_(spatial) β€” go read it, i'll wait πŸ¦‹

ngl there's no error handling drama here, no exit statuses, no signals. it just does the math and hands you a float. main character energy fr fr ✨

πŸ’œ AUTHOR πŸ’œ

Simon Wunderlich β€” Author of s3d 🌟


okay bestie that's the whole page, you ate that πŸ“ this was S3D_VECTOR_DOT_PRODU(3) from the s3d Manual, source s3d, and yeah the page header and footer were doing the same thing twice, we love a symmetric queen πŸ’…βœ¨ mwah, go compute some dot products πŸ§šπŸ’–