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 π§π
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms