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! π¦ππ
π¦ 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