Math namespace reference
[Core module]

Description  

Mathematical tools and functions

Members  

Types  

Functions  

  • double degree2rad(double x)
  • void get_rotation_matrix(Matrix<2> &m, unsigned int axis, double rangle)
  • void get_rotation_matrix(Matrix<3> &m, unsigned int axis, double rangle)
  • double lp_floor(double x, double n)
  • double lp_mod(double x, double n)
  • template std::ostream & operator<<(std::ostream &o, const VectorBase<N, T> &v)
  • template std::ostream & operator<<(std::ostream &o, const VectorPairBase<N> &l)
  • template std::ostream & operator<<(std::ostream &o, const Matrix<N> &m)
  • std::ostream & operator<<(std::ostream &o, const Quaternion &q)
  • template std::ostream & operator<<(std::ostream &o, const TransformBase<N> &t)
  • template std::ostream & operator<<(std::ostream &o, const Triangle<N> &l)
  • double rad2degree(double x)
  • double square(double x)

Constants  

Members detail  

typedef Vector<2, double> Vector2  

See Vector<2, T> struct.

typedef Vector<3, double> Vector3  

See Vector<3, T> struct.

typedef VectorPair<3> VectorPair3  

See VectorPair<3> struct.

typedef Matrix<3> Matrix3x3  

No documentation available

typedef Transform<2> Transform2  

See Transform<2> class.

typedef Transform<3> Transform3  

See Transform<3> class.

typedef VectorPair<2> VectorPair2  

See VectorPair<2> struct.

double degree2rad(double x)  

Convert from degrees to radians

void get_rotation_matrix(Matrix<2> &m, unsigned int axis, double rangle)  

Setup a 2d rotation matrix with specified angle in radian. axis parameter must be 0.

void get_rotation_matrix(Matrix<3> &m, unsigned int axis, double rangle)  

Setup a 3d rotation matrix with specified angle in radian. axis parameter can be 0, 1 or 2 for x, y and z axes.

double lp_floor(double x, double n)  

No documentation available

double lp_mod(double x, double n)  

No documentation available

template <int N, typename T> std::ostream & operator<<(std::ostream &o, const VectorBase<N, T> &v)  

No documentation available

template <int N> std::ostream & operator<<(std::ostream &o, const VectorPairBase<N> &l)  

No documentation available

template <int N> std::ostream & operator<<(std::ostream &o, const Matrix<N> &m)  

No documentation available

std::ostream & operator<<(std::ostream &o, const Quaternion &q)  

No documentation available

template <int N> std::ostream & operator<<(std::ostream &o, const TransformBase<N> &t)  

No documentation available

template <int N> std::ostream & operator<<(std::ostream &o, const Triangle<N> &l)  

No documentation available

double rad2degree(double x)  

Convert from radians to degrees

typedef std::pair<double, double> range_t  

No documentation available

double square(double x)  

Compute square

const Vector2 vector2_0 = Vector2(0.0,0.0)  

Commonly used vector constant

const Vector2 vector2_01  

Commonly used vector constant

const Vector2 vector2_1  

Commonly used vector constant

const Vector2 vector2_10  

Commonly used vector constant

const VectorPair<2> vector2_pair_00  

No documentation available

const VectorPair<2> vector2_pair_01  

No documentation available

const Vector3 vector3_0  

Commonly used vector constant

const Vector3 vector3_001  

Commonly used vector constant

const Vector3 vector3_010  

Commonly used vector constant

const Vector3 vector3_1  

Commonly used vector constant

const Vector3 vector3_100  

Commonly used vector constant

const VectorPair<3> vector3_pair_00  

No documentation available

const VectorPair<3> vector3_pair_01  

No documentation available

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:24 2012 using MkDoc