vector_length(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ vector_length(3) β€” Allegro manual ✨

okay bestie, welcome to the Allegro manual πŸ’– this one is literally about measuring how long a vector is, no cap. it's giving geometry but make it cute.


🌸 NAME 🌸

vector_length, vector_length_f β€” Calculates the length of a vector. Allegro game programming library. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

fixed vector_length(fixed x, fixed y, fixed z);

float vector_length_f(float x, float y, float z);

πŸ’… DESCRIPTION πŸ’…

Calculates the length of the vector (x, y, z), using that good 'ole Pythagoras theorem. ✨ like, the math girlies have been serving this one for centuries and it still ate. πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘


Allegro manual, version 4.4.3, page vector_length(3) β€” mwah πŸ’‹ thanks for reading bestie, now go calculate some lengths and slay the day away πŸŽ€πŸ’–βœ¨πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from