logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fixtorad_r - Constant to convert angles in fixed point format to radians. Allegro game programming

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. Example:

          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);

Name

       fixtorad_r  -  Constant  to  convert  angles  in  fixed point format to radians. Allegro game programming
       library.

See Also

fixmul(3alleg4), radtofix_r(3alleg4)

Allegro                                           version 4.4.3                              fixtorad_r(3alleg4)

Synopsis

#include<allegro.h>externconstfixedfixtorad_r;

See Also