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


FIXED
Arithmetic functions

slCos

Return cosine value for specified angle

Format

FIXED slCos(angc)
ANGLE angc ;

Parameter

angc specified angle value

Function

Retrieves the Cos value for the specified angle from the Cos table.

Return value

The function returns the cosine value for the specified angle.

Remarks

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


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