|
Classes |
| class | Frustum |
| | A solid that can be used to determine visibility information. More...
|
| class | Matrix |
| | A square matrix class for managing 3D (NOT INTENDED for scientific purposes or speed). More...
|
| class | Plane |
| class | Quaternion |
| | 3D Quaternion class for complex rotation More...
|
Typedefs |
|
typedef Matrix< 3, double > | Matrix3d |
| | 3x3 high precision type
|
|
typedef Matrix< 4, double > | Matrix4d |
| | 4x4 high precision type
|
|
typedef Matrix< 3, float > | Matrix3 |
| | 3x3 matrix type
|
|
typedef Matrix< 4, float > | Matrix4 |
| | 4x4 matrix type
|
Functions |
| float | linearInterpolate (float f1, float f2, float amt) |
| float | barycentric (float v1, float v2, float v3, float a1, float a2) |
| float | randomFloat (float min, float max) |
| Propane::Math::Matrix4 | getMatrix (GLenum matrixName) |
|
template<size_t N, class T> |
| std::ostream & | operator<< (std::ostream &os, const Matrix< N, T > &m) |
| | Debugging output.
|
|
template<class T> |
| Matrix< 4, T > | rotation3D (const Vector< 3, T > &axis, double radians) |
| | Arbitrary axis rotation in 3D.
|
|
template<class T> |
| Matrix< 4, T > | rotationX (double rads) |
| | Rotation about the X axis.
|
|
template<class T> |
| Matrix< 4, T > | rotationY (double rads) |
| | Rotation about the Y axis.
|
|
template<class T> |
| Matrix< 4, T > | rotationZ (double rads) |
| | Rotation about the Z axis.
|
|
template<class T> |
| Matrix< 3, T > | rotation2D (double rads) |
| | Rotation about the Z axis (in 2D).
|
|
template<size_t N, class T> |
| Matrix< N, T > | scaling (const Vector< N, T > &scale) |
| | Scaling in 2D/3D.
|
|
template<size_t N, class T> |
| Matrix< N, T > | translation (const Vector< N, T > &translate) |
| | Translating in 2D/3D.
|
|
template<class T> |
| Vector< 3, T > | cross (const Vector< 3, T > &v1, const Vector< 3, T > &v2) |
| | Cross product.
|
|
template<class T> |
| Vector< 4, T > | cross (const Vector< 4, T > &v1, const Vector< 4, T > &v2) |
| | Cross product for 4-vector, ignoring the w-component.
|
|
template<size_t N, class T> |
| Vector< N, T > | operator * (double s, const Vector< N, T > &v) |
| | Scale with l-value double.
|