Return to previous page | Return to menu | Go to next page


FIXED
Arithmetic functions

slSin

Return sine value for specified angle

Format

FIXED slSin(angs)
ANGLE angs ;

Parameter

angs specified angle value

Function

The Sin value for the specified angle is taken from the Sin table.

Return value

The function returns the sine value for the specified angle.

Remarks

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


Return to previous page | Return to menu | Go to next page