|
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
|