Return to previous page | Return to menu | Go to next page
FIXED
Arithmetic functions
Return cosine value for specified angle
FIXED slCos(angc)
ANGLE angc ;
angc specified angle value
Retrieves the Cos value for the specified angle from the Cos table.
The function returns the cosine value for the specified angle.
The cosine value is expressed 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
slCos