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 π«Άππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms