Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

mathutils.h File Reference

#include <math.h>

Include dependency graph for mathutils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mathutils

Functions

template<class num>
num mathutils::squareDistance (num x1, num ya, num x2, num yb)
 euclidean distance of two points (squared), see distance()
template<class num>
num mathutils::distance (num x1, num ya, num x2, num yb)
 euclidean distance of two points, see squareDistance()
template<class num>
num mathutils::limitRange (num n, num low, num high)
 Clips n to a minimum of low or maximum of high.
template<class num>
num mathutils::squared (num n)
 returns n*n;
template<class num>
num mathutils::abs_t (num n)
 returns the maximum of n or -n
template<class num>
num mathutils::log2t (num x)
 Returns the log base 2 of a number.
template<>
float mathutils::log2t (float x)
 returns the log base 2 for a 'float' value
template<>
double mathutils::log2t (double x)
 returns the log base 2 for a 'double' value
template<class num>
num mathutils::deg2rad (num x)
 converts from degrees to radians
template<class num>
num mathutils::rad2deg (num x)
 converts from radians to degrees


Tekkotsu v4.0
Generated Thu Nov 22 00:56:14 2007 by Doxygen 1.5.4