Return to previous page | Return to menu | Go to next page
FIXED
Arithmetic functions
Return sine value for specified angle
FIXED slSin(angs)
ANGLE angs ;
angs specified angle value
The Sin value for the specified angle is taken from the Sin table.
The function returns the sine value for the specified angle.
Sine values are represented as 0x0000 to 0xffff.
However, after adding 0x0008 to the angle data, the lower 4 bits are discarded (rounded to the nearest 8) and used as 0x0000 to 0xfff0.
This is common to all functions that use angle data.
Reference: Chapter 11 Arithmetic Functions
slSin