Return to previous page | Return to menu | Go to next page
FIXED
Arithmetic functions
Show tangent value for specified angle
FIXED slTan(angt)
ANGLE angt ;
angt Specified angle value
Retrieves the Tan value for the specified angle from the Tan table.
The function returns the Tan value for the specified angle.
Tangent values are 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
slTan