#include "ga_trig.hpp" #ifdef _AS_VERSION_PC #include #else #include #endif float CosTable [ AS_DEGREES_360 ]; float SinTable [ AS_DEGREES_360 ]; // Initiate math function - calculates trig tables: void InitMath () { long double Unit = ( long double ) ( PI * 2.0F ) / ( long double ) AS_DEGREES_360; // Loop through all DEGREECOUNT degrees: for ( unsigned short N = 0; N < AS_DEGREES_360; N++ ) { long double Degree = ( long double ) N; CosTable [ N ] = float ( cos ( Unit * Degree ) ); SinTable [ N ] = float ( sin ( Unit * Degree ) ); } }