1al_fixacos(3) al_fixacos(3)
2
3
4
6 al_fixacos - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 al_fixed al_fixacos(al_fixed x);
12
14 This function finds the inverse cosine of a value using a lookup table.
15 The input must be a fixed point value. The inverse cosine is defined
16 only in the domain from -1 to 1. Outside of this input range, the
17 function will set Allegro’s errno to EDOM and return zero.
18
19 Example:
20
21 al_fixed result;
22
23 /* Sets result to binary angle 128. */
24 result = al_fixacos(al_itofix(-1));
25
27 Returns the inverse sine of a fixed point value, measured as fixed
28 point binary format angle, or zero if the input was out of range. All
29 return values of this function will be in the range 0 to 128.
30
31
32
33Allegro reference manual al_fixacos(3)