radtofix_r man page

radtofix_r — Constant to convert radians to fixed point angles. Allegro game programming library.


#include <allegro.h>

extern const fixed radtofix_r;


This constant gives a ratio which can be used to convert a fixed point number in radians to a fixed point number in binary angle format. Example:

fixed rad_angle, binary_angle;
binary_angle = fixmul(rad_angle, radtofix_r);

See Also

fixmul(3), fixtorad_r(3)

Referenced By


Explore man page connections for radtofix_r(3).

Allegro version 4.4.2 Allegro manual