.\" Automatically generated by Pandoc 3.6.1 .\" .TH "al_fixsin" "3" "" "Allegro reference manual" .SH NAME al_fixsin \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] al_fixed al_fixsin(al_fixed x); .EE .SH DESCRIPTION This function finds the sine of a value using a lookup table. The input value must be a fixed point binary angle. .PP Example: .IP .EX al_fixed angle; int result; \f[I]/* Set the binary angle to 90 degrees. */\f[R] angle = al_itofix(64); \f[I]/* The sine of 90 degrees is one. */\f[R] result = al_fixtoi(al_fixsin(angle)); assert(result == 1); .EE .SH RETURN VALUE Returns the sine of a fixed point binary format angle as a fixed point value.