- Main Page
- Modules
- Classes
- Files
- Related Pages

- File List
- File Members

# src/vectorMath/mathex.h File Reference

`#include <math.h>`
`#include <ode/common.h>`

Go to the source code of this file.

## Defines
#define | EPSILON 1.0e-8
#define | ZERO EPSILON
## Functions
template<class T>
T | limit (const T &x, const T &lower, const T &upper)
template<class T>
T | sqr (const T &x)
template<class T>
T | RadToDeg (const T &rad)
template<class T>
T | DegToRad (const T &deg)

## Define Documentation

#define EPSILON 1.0e-8

#define ZERO EPSILON

## Function Documentation

template<class T>

T DegToRad | ( | const T & | deg | ) | `[inline]`

Converts degrees to radians

template<class T>

T limit | ( | const T & | x,
|  | const T & | lower,
|  | const T & | upper |
| ) |  |  | `[inline]`

template<class T>

T RadToDeg | ( | const T & | rad | ) | `[inline]`

Converts radians to degrees

template<class T>

T sqr | ( | const T & | x | ) | `[inline]`