utils::math Namespace Reference


Functions

float fastInvSqrt (float x)
 A very fast function to calculate the approximate inverse square root of a floating point value.
float fastSqrt (float x)
 A helper function that uses the fastInvSqrt for getting the normal squareroot.
float cachedSin (int angle)
float cachedCos (int angle)
float cachedTan (int angle)
void init ()


Function Documentation

float utils::math::cachedCos int  angle  ) 
 

Definition at line 91 of file mathutils.cpp.

float utils::math::cachedSin int  angle  ) 
 

Definition at line 86 of file mathutils.cpp.

float utils::math::cachedTan int  angle  ) 
 

Definition at line 96 of file mathutils.cpp.

float utils::math::fastInvSqrt float  x  ) 
 

A very fast function to calculate the approximate inverse square root of a floating point value.

Definition at line 47 of file mathutils.cpp.

float utils::math::fastSqrt float  x  ) 
 

A helper function that uses the fastInvSqrt for getting the normal squareroot.

Definition at line 57 of file mathutils.cpp.

void utils::math::init  ) 
 

Definition at line 62 of file mathutils.cpp.


Generated on Fri Mar 30 15:39:19 2007 for TMW Server by  doxygen 1.3.9.1