fixatan(3)

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

✨ NAME ✨

fixatan β€” fixed point inverse tangent lookup table πŸ’– and like, it's part of the Allegro game programming library, obviously.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

fixed fixatan(fixed x);

🌸 DESCRIPTION 🌸

okay so bestie, here's the tea: this function finds the inverse tangent of a value, and it does it with a lookup table. Not vibing with slow math today, she's just looking it up. πŸ’…

The input value must be a fixed point radian. And remember the whole point of an inverse tangent: it's the value whose tangent is x. That's it, that's the whole assignment. πŸŽ€

Example, because we love a demonstration:

fixed result;

/* Sets `result' to binary angle 13. */
result = fixatan(ftofix(0.326));

See how result gets set to binary angle 13? iconic. ✨


πŸ‘‘ RETURN VALUE πŸ‘‘

It returns the inverse tangent of a fixed point value, measured as a fixed point binary format angle. That's the return vibe, no notes. πŸ’œ


πŸ’€ SEE ALSO πŸ’€

ngl bestie… there is literally nothing here. The original page lists zero other entries. No cross-references, no friends, no plus-ones. She's a solo act. πŸ™ˆ


and that's the whole page, fr fr 🫢 β€” this was the fixatan(3) page from the Allegro manual, version 4.4.3. mwah, go look up some tangents πŸ’–

πŸ“¦ where this page comes from