al_fixtorad_r(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_fixtorad_r(3alleg5) ✨

okay so bestie, this is the Allegro 5 API page for al_fixtorad_r, and it's literally the tiny little constant that saves your whole math era. no cap. 🫢


🌸 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. it's giving conversion slay, fr fr. 🌈

Example:

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 πŸ’‹ this came from the Allegro reference manual, page al_fixtorad_r(3alleg5). go off, bestie. πŸ‘‘

πŸ“¦ where this page comes from