C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Math::GetTrigTable

Defined in:  C4Computation.h
Returns a pointer to a table of precomputed cosine and sine values.
Prototype

const ConstVector2D *GetTrigTable(void);

Description
The GetTrigTable function returns a pointer to a table of 256 precomputed cosine and sine values. Entry k in the table corresponds to the angle (k/255)·360 degrees. Each entry in the table is a 2D vector whose x coordinate holds the cosine of the angle and whose y coordinate holds the sine of the angle.
See Also

C4::CosSin