Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

mathutils Namespace Reference


Functions

template<class num>
num squareDistance (num x1, num ya, num x2, num yb)
template<class num>
num distance (num x1, num ya, num x2, num yb)
template<class num>
num limitRange (num n, num low, num high)
template<class num>
num squared (num n)
template<class num>
num abs_t (num n)
template<class num>
num log2t (num x)
template<>
float log2t (float x)
template<>
double log2t (double x)
template<class num>
num deg2rad (num x)
template<class num>
num rad2deg (num x)


Function Documentation

template<class num>
num mathutils::squareDistance ( num  x1,
num  ya,
num  x2,
num  yb 
) [inline]

Definition at line 9 of file mathutils.h.

Referenced by distance().

template<class num>
num mathutils::distance ( num  x1,
num  ya,
num  x2,
num  yb 
) [inline]

Definition at line 14 of file mathutils.h.

template<class num>
num mathutils::limitRange ( num  n,
num  low,
num  high 
) [inline]

Definition at line 19 of file mathutils.h.

template<class num>
num mathutils::squared ( num  n  )  [inline]

Definition at line 26 of file mathutils.h.

template<class num>
num mathutils::abs_t ( num  n  )  [inline]

Definition at line 31 of file mathutils.h.

template<class num>
num mathutils::log2t ( num  x  )  [inline]

Definition at line 36 of file mathutils.h.

template<>
float mathutils::log2t ( float  x  )  [inline]

Definition at line 48 of file mathutils.h.

template<>
double mathutils::log2t ( double  x  )  [inline]

Definition at line 52 of file mathutils.h.

template<class num>
num mathutils::deg2rad ( num  x  )  [inline]

Definition at line 57 of file mathutils.h.

template<class num>
num mathutils::rad2deg ( num  x  )  [inline]

Definition at line 62 of file mathutils.h.

Referenced by HeadPointerMC::isReachable().


Tekkotsu v3.0
Generated Wed Oct 4 00:05:22 2006 by Doxygen 1.4.7