ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki

# Math Namespace Reference

## Namespaces

namespace   This

namespace contains some useful classes dealing with math and geometry.

## Classes

class  AABB
class  Angle
class  Frustum
class  Line2d
class  Segment2d
class  Line3d
class  MatrixBase
The base class for all the matrices. More...
class  MatrixType
MatrixType is a class used to create different kinds of matrices. More...
class  Matrix
Matrix class. More...
class  Matrix< 3, 3 >
class  Matrix< 4, 4 >
class  Plane
class  Quaternion
class  Ray
A three dimensional half-line. More...
class  Rect2d
class  Rotation3D
class  MatrixType< dim, dim >
class  Transform
class  MatrixType< dim, 1 >
class  Matrix< 2, 1 >
class  Matrix< 3, 1 >
class  Matrix< 4, 1 >

## Typedefs

typedef Matrix< 2, 1 > Vector2d
typedef Matrix< 3, 1 > Vector3d
typedef Matrix< 3, 3 > Matrix3
typedef Matrix< 4, 4 > Matrix4
typedef Matrix< 4, 1 > Vector4d

## Enumerations

enum  EulerOrder {
EO_XYX, EO_XYZ, EO_XZX, EO_XZY,
EO_YXY, EO_YXZ, EO_YZX, EO_YZY,
EO_ZXY, EO_ZXZ, EO_ZYX, EO_ZYZ
}

Euler angle sequence constants.

More...

## Functions

Common::Debugoperator<< (Common::Debug &dbg, const Math::Angle &a)
Angle operator- (const Angle &a)
Angle operator+ (const Angle &a1, const Angle &a2)
Angle operator- (const Angle &a1, const Angle &a2)
Angle operator* (const Angle &a1, float f)
Angle operator* (float f, const Angle &a2)
Angle operator/ (const Angle &a1, float f)
Angle operator/ (float f, const Angle &a2)
bool operator== (const Angle &a1, const Angle &a2)
bool operator!= (const Angle &a1, const Angle &a2)
bool operator< (const Angle &a1, const Angle &a2)
bool operator> (const Angle &a1, const Angle &a2)
bool gluMathUnProject (Vector3d win, const Matrix4 &mvpMatrix, const Common::Rect &viewport, Vector3d &obj)
Matrix4 makePerspectiveMatrix (double fovy, double aspect, double zNear, double zFar)
Matrix4 makeFrustumMatrix (double left, double right, double bottom, double top, double zNear, double zFar)
Matrix4 makeLookAtMatrix (const Vector3d &eye, const Vector3d &center, const Vector3d &up)
template<typename T , typename S >
bool gluMathProject (Vector3d obj, const T model[16], const T proj[16], const S viewport[4], Vector3d &win)
Common::Debugoperator<< (Common::Debug &dbg, const Math::Line2d &line)
template<int m, int n, int p>
Matrix< m, n > operator* (const Matrix< m, p > &m1, const Matrix< p, n > &m2)
template<int r, int c>
Matrix< r, c > operator+ (const Matrix< r, c > &m1, const Matrix< r, c > &m2)
template<int r, int c>
Matrix< r, c > operator- (const Matrix< r, c > &m1, const Matrix< r, c > &m2)
template<int r, int c>
Matrix< r, c > operator* (const Matrix< r, c > &m1, float factor)
template<int r, int c>
Matrix< r, c > operator/ (const Matrix< r, c > &m1, float factor)
template<int r, int c>
Matrix< r, c > operator* (float factor, const Matrix< r, c > &m1)
template<int r, int c>
Matrix< r, c > operator- (const Matrix< r, c > &m)
template<int r, int c>
bool operator== (const Matrix< r, c > &m1, const Matrix< r, c > &m2)
template<int r, int c>
bool operator!= (const Matrix< r, c > &m1, const Matrix< r, c > &m2)
template<int r, int c>
Common::Debugoperator<< (Common::Debug dbg, const Math::Matrix< r, c > &m)
void swap (float &a, float &b)
bool le (float a, float b)
bool ge (float a, float b)
float square (float x)
template<int dim>
Vector (dim) MatrixType< dim
template<int dim>
Common::Debugoperator<< (Common::Debug dbg, const Math::Matrix< dim, 1 > &v)

## Typedef Documentation

 typedef Matrix<3, 3> Math::Matrix3

Definition at line 74 of file matrix3.h.

 typedef Matrix<4, 4> Math::Matrix4

Definition at line 246 of file matrix4.h.

 typedef Matrix< 2, 1 > Math::Vector2d

Definition at line 28 of file mathfwd.h.

 typedef Matrix< 3, 1 > Math::Vector3d

Definition at line 31 of file mathfwd.h.

 typedef Matrix<4, 1> Math::Vector4d

Definition at line 34 of file vector4d.h.

## Enumeration Type Documentation

 enum Math::EulerOrder

Euler angle sequence constants.

Enumerator:
 EO_XYX EO_XYZ EO_XZX EO_XZY EO_YXY EO_YXZ EO_YZX EO_YZY EO_ZXY EO_ZXZ EO_ZYX EO_ZYZ

Definition at line 38 of file rotation3d.h.

## Function Documentation

 bool Math::ge ( float a, float b ) ` [inline]`

Definition at line 136 of file rect2d.cpp.

template<typename T , typename S >
 bool Math::gluMathProject ( Vector3d obj, const T model[16], const T proj[16], const S viewport[4], Vector3d & win )

Definition at line 35 of file glmath.h.

 bool Math::gluMathUnProject ( Vector3d win, const Matrix4 & mvpMatrix, const Common::Rect & viewport, Vector3d & obj )
 bool Math::le ( float a, float b ) ` [inline]`

Definition at line 132 of file rect2d.cpp.

 Matrix4 Math::makeFrustumMatrix ( double left, double right, double bottom, double top, double zNear, double zFar )
 Matrix4 Math::makeLookAtMatrix ( const Vector3d & eye, const Vector3d & center, const Vector3d & up )
 Matrix4 Math::makePerspectiveMatrix ( double fovy, double aspect, double zNear, double zFar )
template<int r, int c>
 bool Math::operator!= ( const Matrix< r, c > & m1, const Matrix< r, c > & m2 )

Definition at line 467 of file matrix.h.

 bool Math::operator!= ( const Angle & a1, const Angle & a2 ) ` [inline]`

Definition at line 149 of file angle.h.

 Angle Math::operator* ( const Angle & a1, float f ) ` [inline]`

Definition at line 130 of file angle.h.

template<int m, int n, int p>
 Matrix< m, n > Math::operator* ( const Matrix< m, p > & m1, const Matrix< p, n > & m2 )

Definition at line 411 of file matrix.h.

template<int r, int c>
 Matrix< r, c > Math::operator* ( const Matrix< r, c > & m1, float factor ) ` [inline]`

Definition at line 435 of file matrix.h.

template<int r, int c>
 Matrix< r, c > Math::operator* ( float factor, const Matrix< r, c > & m1 )

Definition at line 445 of file matrix.h.

 Angle Math::operator* ( float f, const Angle & a2 ) ` [inline]`

Definition at line 133 of file angle.h.

template<int r, int c>
 Matrix< r, c > Math::operator+ ( const Matrix< r, c > & m1, const Matrix< r, c > & m2 ) ` [inline]`

Definition at line 425 of file matrix.h.

 Angle Math::operator+ ( const Angle & a1, const Angle & a2 ) ` [inline]`

Definition at line 122 of file angle.h.

template<int r, int c>
 Matrix< r, c > Math::operator- ( const Matrix< r, c > & m1, const Matrix< r, c > & m2 ) ` [inline]`

Definition at line 430 of file matrix.h.

 Angle Math::operator- ( const Angle & a1, const Angle & a2 ) ` [inline]`

Definition at line 126 of file angle.h.

template<int r, int c>
 Matrix< r, c > Math::operator- ( const Matrix< r, c > & m )

Definition at line 450 of file matrix.h.

 Angle Math::operator- ( const Angle & a ) ` [inline]`

Definition at line 118 of file angle.h.

 Angle Math::operator/ ( float f, const Angle & a2 ) ` [inline]`

Definition at line 140 of file angle.h.

template<int r, int c>
 Matrix< r, c > Math::operator/ ( const Matrix< r, c > & m1, float factor ) ` [inline]`

Definition at line 440 of file matrix.h.

 Angle Math::operator/ ( const Angle & a1, float f ) ` [inline]`

Definition at line 137 of file angle.h.

 bool Math::operator< ( const Angle & a1, const Angle & a2 ) ` [inline]`

Definition at line 155 of file angle.h.

 Common::Debug & Math::operator<< ( Common::Debug & dbg, const Math::Angle & a )
 Common::Debug& Math::operator<< ( Common::Debug & dbg, const Math::Line2d & line )

Definition at line 108 of file line2d.cpp.

template<int dim>
 Common::Debug& Math::operator<< ( Common::Debug dbg, const Math::Matrix< dim, 1 > & v )

Definition at line 129 of file vector.h.

template<int r, int c>
 Common::Debug& Math::operator<< ( Common::Debug dbg, const Math::Matrix< r, c > & m )

Definition at line 472 of file matrix.h.

template<int r, int c>
 bool Math::operator== ( const Matrix< r, c > & m1, const Matrix< r, c > & m2 )

Definition at line 455 of file matrix.h.

 bool Math::operator== ( const Angle & a1, const Angle & a2 ) ` [inline]`

Definition at line 145 of file angle.h.

 bool Math::operator> ( const Angle & a1, const Angle & a2 ) ` [inline]`

Definition at line 159 of file angle.h.

 float Math::square ( float x ) ` [inline]`

Definition at line 30 of file utils.h.

 void Math::swap ( float & a, float & b )
template<int dim>
 Math::Vector ( dim )

Generated on Sat Sep 19 2020 05:05:49 for ResidualVM by  1.7.1