TrueReality  v0.1.1912
Math.h File Reference
#include <trUtil/Export.h>
#include <osg/Math>
Include dependency graph for Math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 trUtil::Math
 

Functions

void trUtil::Math::SinCos (double x, double &sinVal, double &cosVal)
 Takes a Value X and outputs its Sin and Cos by reference. More...
 
void trUtil::Math::SinCos (float x, float &sinVal, float &cosVal)
 Takes a Value X and outputs its Sin and Cos by reference. More...
 
double trUtil::Math::Deg2Rad (double degree)
 Takes Degrees and converts them to Radians. More...
 
float trUtil::Math::Deg2Rad (float degree)
 Takes Degrees and converts them to Radians. More...
 
double trUtil::Math::Rad2Deg (double radian)
 Takes Radians and converts them to Degrees. More...
 
float trUtil::Math::Rad2Deg (float radian)
 Takes Radians and converts them to Degrees. More...
 
double trUtil::Math::CheckState (double state)
 Checks if State is = to 0, less then 0 or greater, and outputs -1, 0, 1. More...
 
float trUtil::Math::CheckState (float state)
 Checks if State is = to 0, less then 0 or greater, and outputs -1, 0, 1. More...
 
template<typename T >
trUtil::Math::Lerp (T from, T to, T alpha)
 Linear Interpolation function. More...
 

Variables

static const double trUtil::Math::PI = osg::PI
 / pi. More...
 
static const double trUtil::Math::PI_OVER_2 = osg::PI_2
 / pi/2. More...
 
static const double trUtil::Math::PI_OVER_4 = osg::PI_4
 / pi/4. More...
 
static const double trUtil::Math::TWO_PI = trUtil::Math::PI * 2.0
 / pi*2. More...
 
static const double trUtil::Math::FOUR_PI = trUtil::Math::PI * 4.0
 / pi*4. More...
 
static const double trUtil::Math::SQRT_PI = 1.77245385090551602729816748334
 / pi^(1/2) More...
 
static const double trUtil::Math::E = 2.7182818284590452354
 / e. More...
 
static const double trUtil::Math::LOG_OF_2 = osg::LN_2
 / ln(2) More...
 
static const double trUtil::Math::INV_LOG_OF_2 = osg::INVLN_2
 / 1/ln(2) More...
 
static const double trUtil::Math::ONE_OVER_PI = 1.0 / trUtil::Math::PI
 1/PI. More...
 
static const double trUtil::Math::ONE80_OVER_PI = (180.0*ONE_OVER_PI)
 PI/180. More...