Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Math


Modules

Math2x2
Math3x3
Math4x4
Math2
Math3
Math4

Classes

class  Math
 A template class for precision related staff. More...

class  TQuaternion
 quaternion template More...


Defines

#define PI   3.1415926535897

Typedefs

typedef Math< float > MathF
typedef Math< double > MathD
typedef TQuaternion< float > Quaternionf
typedef TQuaternion< double > Quaterniond

Functions

double ToDegrees (double radians)
double ToRadians (double degrees)
template<class T> void gml::Clip (T &v, const double a_min, const double a_max)
 Clip a value of given variable by given range for different types T.

template<class T> T gml::Clipped (const T v, const double a_min, const double a_max)
 Clip a value of given variable by given range for different types T.

template<class T> T gml::Min (const T u, const T v)
 Find minimal value for different type T.

template<class T> T gml::Min3 (const T u, const T v, const T w)
 Find minimal value for different type T within three vars.

template<class T> T gml::Max (const T u, const T v)
 Find maximal value for different type T.

template<class T> T gml::Max3 (const T u, const T v, const T w)
 Find maximal value for different type T within three vars.

template<class T> bool operator== (const TQuaternion< T > &q1, const TQuaternion< T > &q2)
template<class T> bool operator!= (const TQuaternion< T > &q1, const TQuaternion< T > &q2)
template<class T> TQuaternion< T > operator * (const TQuaternion< T > &q1, const TQuaternion< T > &q2)
TQuaternion< T_TO > gml::TQuaternion::Conv (const TQuaternion< T_FROM > &u)
 Convert TQuaternion<T_FROM> to TQuaternion<T_TO>.

TQuaternion< float > gml::TQuaternion::ConvF (const TQuaternion< T > &u)
 Convert TQuaternion<T> to TQuaternion<float>.

TQuaternion< double > gml::TQuaternion::ConvD (const TQuaternion< T > &u)
 Convert TQuaternion<T> to TQuaternion<double>.


Variables

const double RAD_TO_DEG = 57.2957795130823208767981548141052
const double DEG_TO_RAD = 0.0174532925199432957692369076848861
const int QUATERNION_NORMALIZATION_THRESHOLD = 64

Generated on Tue Jan 13 21:12:02 2004 for Graphics and Media Lab CSL by doxygen 1.3.4