Math namespace reference
[Core module]
Description
Members
Types
- typedef [...] Vector2
- typedef [...] Vector3
- typedef [...] VectorPair3
- template struct Matrix
- typedef [...] Matrix3x3
- class Quaternion
- template class Transform<3>
- template class Transform<2>
- typedef [...] Transform2
- typedef [...] Transform3
- template struct Triangle
- template struct Triangle<3>
- template struct Vector
- template struct Vector<3, T>
- template struct Vector<2, T>
- template struct VectorPair
- template struct VectorPair<2>
- template struct VectorPair<3>
- typedef [...] VectorPair2
- typedef [...] range_t
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
- const Vector2 vector2_0
- const Vector2 vector2_01
- const Vector2 vector2_1
- const Vector2 vector2_10
- const VectorPair<2> vector2_pair_00
- const VectorPair<2> vector2_pair_01
- const Vector3 vector3_0
- const Vector3 vector3_001
- const Vector3 vector3_010
- const Vector3 vector3_1
- const Vector3 vector3_100
- const VectorPair<3> vector3_pair_00
- const VectorPair<3> vector3_pair_01
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.
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.
No documentation available
No documentation available
No documentation available
No documentation available
No documentation available
std::ostream & operator<<(std::ostream &o, const Quaternion &q)
No documentation available
No documentation available
No documentation available
Convert from radians to degrees
typedef std::pair<double, double> range_t
No documentation available
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