fixtorad_r (3) - Linux Manuals
fixtorad_r: Constant to convert angles in fixed point format to radians. Allegro game programming library.
Command to display fixtorad_r
manual in Linux: $ man 3 fixtorad_r
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
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);
Pages related to fixtorad_r
- fixtof (3) - Converts a fixed point to floating point. Allegro game programming library.
- fixtoi (3) - Converts a fixed point to integer with rounding. Allegro game programming library.
- fixtan (3) - Fixed point tangent of binary angles. Allegro game programming library.
- fix_filename_case (3) - Converts a filename to a standardised case. Allegro game programming library.
- fix_filename_slashes (3) - Converts all the directory separators to a standard character. Allegro game programming library.
- fixacos (3) - Fixed point inverse cosine lookup table. Allegro game programming library.
- fixadd (3) - Safe function to add fixed point numbers clamping overflow. Allegro game programming library.