S3D_VECTOR_SUBTRACT(3)

πŸ’– hi bestie, welcome to the s3d manual πŸ’–

you're reading S3D_VECTOR_SUBTRACT(3) β€” section 3 of the s3d manual, the one and only. strap in, it's short and it's adorable. πŸŽ€


✨ NAME ✨

s3d_vector_subtract β€” subtracting two vectors. that's it. that's the whole entire job. iconic behavior honestly. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <s3d.h>

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

🌸 DESCRIPTION 🌸

okay so picture this: you roll up with two vectors, and this function does the math for you. it subtracts vector1 from vector2 β€” yes bestie, that direction, vector2 minus vector1, don't come for me β€” and writes the result into result_vector.

all of your vectors have to be in the format float[3]. three floats, that's the vibe check they have to pass, no exceptions. 🌈

want the full lore on what a vector even is (spatially speaking)? wikipedia's got you, fr fr:

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

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” the author of s3d. literal main character, we stan forever, ate and left no crumbs. 🫢✨


xoxo that's the page, bestie πŸ’œ this whole thing is the s3d manual, section 3, sourced from s3d β€” and if you were hoping for a date stamp, sorry babe, the original footer didn't ship one, so i'm not about to invent it. 😭 bye bye, go subtract something! πŸ¦‹πŸŽ€πŸ’