al_fixtorad_r(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– al_fixtorad_r(3) πŸ’–

okay bestie, welcome to the Library Functions Manual corner of the Allegro 5 API β€” this is the page for al_fixtorad_r, and it's lowkey iconic. πŸ’…


✨ NAME ✨

al_fixtorad_r β€” Allegro 5 API πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

const al_fixed al_fixtorad_r = (al_fixed)1608;

🌸 DESCRIPTION 🌸

This constant gives a ratio which can be used to convert a fixed point number in binary angle format to a fixed point number in radians. no cap, that's the whole vibe. ✨

Example, bestie:

al_fixed rad_angle, binary_angle;

/* Set the binary angle to 90 degrees. */
binary_angle = 64;

/* Now convert to radians (about 1.57). */
rad_angle = al_fixmul(binary_angle, al_fixtorad_r);

🫢 SEE ALSO 🫢


mwah πŸ’‹ β€” from the Allegro reference manual, page al_fixtorad_r(3), with no date in the footer (so no invented date, bestie 🫢).

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms