fixtorad_r(3)
π fixtorad_r(3) π
okay bestie, welcome to the Allegro manual page for fixtorad_r(3). This is the Allegro game programming library corner of the docs, and this constant is lowkey iconic: it's the ratio you use to turn a fixed point number in binary angle format into a fixed point number in radians. no cap. β¨
πΈ NAME πΈ
fixtorad_r β constant to convert angles in fixed point format to radians. Allegro game programming library. π
π οΈ SYNOPSIS π οΈ
#include <allegro.h>
extern const fixed fixtorad_r;
π DESCRIPTION π
So like, fixtorad_r is this constant that gives you a ratio. You can use that ratio to convert a fixed point number that's in binary angle format into a fixed point number that's in radians. fr fr, that's the whole vibe. π«
Here's the example from the page, and yes, it ate:
fixed rad_angle, binary_angle;
/* Set the binary angle to 90 degrees. */
binary_angle = 64;
/* Now convert to radians (about 1.57). */
rad_angle = fixmul(binary_angle, fixtorad_r);
π SEE ALSO π
bye bestie, this page is serving Allegro version 4.4.3 realness β go convert some angles and slay π π¦
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms