fixacos (3) - Linux Manuals
fixacos: Fixed point inverse cosine lookup table. Allegro game programming library.
Command to display fixacos
manual in Linux: $ man 3 fixacos
NAME
fixacos - Fixed point inverse cosine lookup table. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
fixed fixacos(fixed x);
DESCRIPTION
This function finds the inverse cosine of a value using a lookup table. The
input value must be a fixed point radian. The inverse cosine is defined
only in the domain from `-1' to `1'. Outside of this input range, the
function will set `errno' to EDOM and return zero. Example:
fixed result;
/* Sets `result' to binary angle 128. */
result = fixacos(itofix(-1));
RETURN VALUE
Returns the inverse sine of a fixed point value, measured as fixed point
binary format angle, or zero if the input was out of range. All return
values of this function will be in the range `0' to `128'.
Pages related to fixacos
- fixadd (3) - Safe function to add fixed point numbers clamping overflow. Allegro game programming library.
- fixasin (3) - Fixed point inverse sine lookup table. Allegro game programming library.
- fixatan (3) - Fixed point inverse tangent lookup table. Allegro game programming library.
- fixatan2 (3) - Fixed point version of the libc atan2() routine. 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.
- fixceil (3) - Returns the smallest integer not less than x. Allegro game programming library.
- fixcos (3) - Fixed point cosine of binary angles. Allegro game programming library.