|
TrueReality
v0.1.1912
|
Functions | |
| void | SinCos (double x, double &sinVal, double &cosVal) |
| Takes a Value X and outputs its Sin and Cos by reference. More... | |
| void | SinCos (float x, float &sinVal, float &cosVal) |
| Takes a Value X and outputs its Sin and Cos by reference. More... | |
| double | Deg2Rad (double degree) |
| Takes Degrees and converts them to Radians. More... | |
| float | Deg2Rad (float degree) |
| Takes Degrees and converts them to Radians. More... | |
| double | Rad2Deg (double radian) |
| Takes Radians and converts them to Degrees. More... | |
| float | Rad2Deg (float radian) |
| Takes Radians and converts them to Degrees. More... | |
| double | CheckState (double state) |
| Checks if State is = to 0, less then 0 or greater, and outputs -1, 0, 1. More... | |
| float | CheckState (float state) |
| Checks if State is = to 0, less then 0 or greater, and outputs -1, 0, 1. More... | |
| template<typename T > | |
| T | Lerp (T from, T to, T alpha) |
| Linear Interpolation function. More... | |
Variables | |
| static const double | PI = osg::PI |
| / pi. More... | |
| static const double | PI_OVER_2 = osg::PI_2 |
| / pi/2. More... | |
| static const double | PI_OVER_4 = osg::PI_4 |
| / pi/4. More... | |
| static const double | TWO_PI = trUtil::Math::PI * 2.0 |
| / pi*2. More... | |
| static const double | FOUR_PI = trUtil::Math::PI * 4.0 |
| / pi*4. More... | |
| static const double | SQRT_PI = 1.77245385090551602729816748334 |
| / pi^(1/2) More... | |
| static const double | E = 2.7182818284590452354 |
| / e. More... | |
| static const double | LOG_OF_2 = osg::LN_2 |
| / ln(2) More... | |
| static const double | INV_LOG_OF_2 = osg::INVLN_2 |
| / 1/ln(2) More... | |
| static const double | ONE_OVER_PI = 1.0 / trUtil::Math::PI |
| 1/PI. More... | |
| static const double | ONE80_OVER_PI = (180.0*ONE_OVER_PI) |
| PI/180. More... | |
|
inline |
|
inline |
|
inline |
Takes Degrees and converts them to Radians.
| degree | The degree. |
Definition at line 92 of file Math.h.
Referenced by trCore::SceneObjects::RingArray::RingArray().

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
/ pi*2.
Definition at line 37 of file Math.h.
Referenced by trCore::SceneObjects::RingArray::UpdateRing1Slide(), trCore::SceneObjects::RingArray::UpdateRing2Angle(), trCore::SceneObjects::RingArray::UpdateRing2Slide(), trCore::SceneObjects::RingArray::UpdateRing3Angle(), trCore::SceneObjects::RingArray::UpdateRing3Slide(), and trCore::SceneObjects::RingArray::UpdateRing4Angle().