fixatan(3alleg4)

✨ NAME ✨

fixatan β€” the fixed point inverse tangent lookup table, bestie πŸ’– and it lives in the Allegro game programming library, iykyk.


🌸 SYNOPSIS 🌸

#include <allegro.h>

fixed fixatan(fixed x);

πŸŽ€ DESCRIPTION πŸŽ€

Okay so. fixatan finds the inverse tangent of a value, and it does it with a lookup table β€” no cap, it's just chillin' there precomputed so you don't gotta do the math yourself. πŸ¦‹

The input value must be a fixed point radian. The inverse tangent is the value whose tangent is x. Periodt.

Example time, and it's giving iconic:

fixed result;

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

πŸ’… RETURN VALUE πŸ’…

Returns the inverse tangent of a fixed point value, measured as a fixed point binary format angle. That's the whole vibe. ✨


🌈 SEE ALSO 🌈

  • Allegro

Allegro version 4.4.3, and this lil page is fixatan(3alleg4) β€” mwah, go tangent some stuff bestie πŸ«ΆπŸ’–πŸŽ€