Math Class Reference

#include <Math.h>

List of all members.

Static Public Member Functions

static byte abs (byte x)
static double abs (double x)
static float abs (float x)
static byte abs (int x)
template<class T>
static bool epsilonEquals (T f, T g=(T) 0, T e=(T) EPSILON)
template<class T>
static T max (T x, T y)
template<class T>
static T max3 (T x[3])
template<class T>
static T min (T x, T y)
template<class T>
static T sqr (T f)
template<class T>
static void swap (T &x, T &y)
static double toDegrees (double angrad)
static double toRadians (double angdeg)

Static Public Attributes

static const double PI = M_PI
static const double MAXDOUBLE = DBL_MAX
static const double MINDOUBLE = DBL_MIN
static const double EPSILON = 1.0e-12


Detailed Description

Definition at line 16 of file Math.h.


Member Function Documentation

static byte Math::abs int  x  )  [inline, static]
 

Definition at line 35 of file Math.h.

References abs().

static float Math::abs float  x  )  [inline, static]
 

Definition at line 31 of file Math.h.

static double Math::abs double  x  )  [inline, static]
 

Definition at line 27 of file Math.h.

static byte Math::abs byte  x  )  [inline, static]
 

Definition at line 23 of file Math.h.

Referenced by abs(), _Tuple4< Type >::absolute(), _Tuple3< Type >::absolute(), _Tuple2< Type >::absolute(), Matrix3SVD::almostEqual(), GMatrix::checkMatrix(), Matrix3SVD::compute_2X2(), GMatrix::compute_2X2(), Matrix3SVD::compute_qr(), GMatrix::compute_qr(), Matrix3SVD::compute_rot(), GMatrix::compute_rot(), Matrix3SVD::compute_shift(), GMatrix::compute_shift(), GMatrix::luDecomposition(), operator<<(), and Matrix3SVD::svdReorder().

template<class T>
static bool Math::epsilonEquals f,
g = (T) 0,
e = (T) EPSILON
[inline, static]
 

Definition at line 39 of file Math.h.

Referenced by _Matrix4< Type >::epsilonEquals(), _Matrix3< Type >::epsilonEquals(), _Tuple4< Type >::epsilonEquals(), _Tuple3< Type >::epsilonEquals(), _Tuple2< Type >::epsilonEquals(), _AxisAngle4< Type >::epsilonEquals(), and _Matrix3< Type >::setAxisAngle().

template<class T>
static T Math::max x,
y
[inline, static]
 

Definition at line 43 of file Math.h.

Referenced by GMatrix::compute_rot(), GMatrix::compute_shift(), _Point4< Type >::distanceLinf(), _Point3< Type >::distanceLinf(), _Point2< Type >::distanceLinf(), and max3().

template<class T>
static T Math::max3 x[3]  )  [inline, static]
 

Definition at line 47 of file Math.h.

References max().

Referenced by _Matrix4< Type >::get(), _Matrix4< Type >::getScale(), and _Matrix3< Type >::getScale().

template<class T>
static T Math::min x,
y
[inline, static]
 

Definition at line 51 of file Math.h.

Referenced by GMatrix::compute_shift(), and GMatrix::set().

template<class T>
static T Math::sqr f  )  [inline, static]
 

Definition at line 55 of file Math.h.

Referenced by GMatrix::computeSVD(), _Point4< Type >::distanceSquared(), _Point3< Type >::distanceSquared(), _Point2< Type >::distanceSquared(), _Tuple4< Type >::normSquared(), _Tuple3< Type >::normSquared(), _Tuple2< Type >::normSquared(), and _AxisAngle4< Type >::normSquared().

template<class T>
static void Math::swap T &  x,
T &  y
[inline, static]
 

Definition at line 59 of file Math.h.

Referenced by DoubleArray2::swap(), _Matrix3< Type >::swapColumn(), _Matrix3< Type >::swapRow(), GMatrix::transpose(), _Matrix4< Type >::transpose(), and _Matrix3< Type >::transpose().

static double Math::toDegrees double  angrad  )  [inline, static]
 

Definition at line 65 of file Math.h.

References PI.

static double Math::toRadians double  angdeg  )  [inline, static]
 

Definition at line 69 of file Math.h.

References PI.

Referenced by Matrix3SVD::test().


Member Data Documentation

const double Math::EPSILON = 1.0e-12 [static]
 

Definition at line 21 of file Math.h.

Referenced by _Tuple4< Type >::operator==(), _Tuple3< Type >::operator==(), and _Tuple2< Type >::operator==().

const double Math::MAXDOUBLE = DBL_MAX [static]
 

Definition at line 19 of file Math.h.

const double Math::MINDOUBLE = DBL_MIN [static]
 

Definition at line 20 of file Math.h.

const double Math::PI = M_PI [static]
 

Definition at line 18 of file Math.h.

Referenced by _Quat4< Type >::interpolate(), toDegrees(), and toRadians().


The documentation for this class was generated from the following files:
Generated on Thu Sep 29 13:39:45 2005 for vecmath by  doxygen 1.4.4