|
| constexpr | Matrix () noexcept |
| | Matrix (std::initializer_list< std::initializer_list< T > > list) |
| T | Determinant () const |
| Matrix< T, Rows, Cols > | Inverse () const |
| T & | operator() (size_t row, size_t col) |
| const T & | operator() (size_t row, size_t col) const |
| template<size_t OtherCols> |
| Matrix< T, Rows, OtherCols > | operator* (const Matrix< T, Cols, OtherCols > &other) const |
| Matrix< T, Rows, Cols > | operator+ (const Matrix< T, Rows, Cols > &other) const |
| Matrix< T, Rows, Cols > | operator- (const Matrix< T, Rows, Cols > &other) const |
| std::string | ToString () const |
| Matrix< T, Cols, Rows > | Transpose () const |
| | Returns the transposed matrix; does not modify this one.
|
|
| static Matrix< T, 4, 4 > | FreeLook (const Vector< T, 3 > &position, T yaw, T pitch) |
| | View matrix for a yaw/pitch-driven free camera at position.
|
| static Matrix< T, Rows, Rows > | Identity () |
| static Matrix< T, 4, 4 > | LookAt (const Vector< T, 3 > &eye, const Vector< T, 3 > ¢er, const Vector< T, 3 > &up) |
| | Left-handed view matrix looking from eye toward center.
|
| static Matrix< T, 4, 4 > | LookAtRH (const Vector< T, 3 > &eye, const Vector< T, 3 > ¢er, const Vector< T, 3 > &up) |
| | Right-handed view matrix looking from eye toward center.
|
| static Matrix< T, 4, 4 > | LookTo (const Vector< T, 3 > &eye, const Vector< T, 3 > &direction, const Vector< T, 3 > &up) |
| | Left-handed view matrix looking from eye along a direction (rather than at a point).
|
| static Matrix< T, 4, 4 > | OrbitView (const Vector< T, 3 > &target, T distance, T theta, T phi) |
| | View matrix for a camera orbiting target at the given distance and angles.
|
| static Matrix< T, 4, 4 > | Orthographic (T left, T right, T bottom, T top, T nearPlane, T farPlane) |
| | Builds an orthographic projection over the given box.
|
| static Matrix< T, 4, 4 > | Perspective (T fovY, T aspectRatio, T nearPlane, T farPlane) |
| | Builds a left-handed perspective projection (reversed-Z: near maps to depth 1).
|
| static Matrix< T, 4, 4 > | Rotate (const Quaternion &rotation) |
| | Builds a rotation matrix from a quaternion.
|
| static Matrix< T, 4, 4 > | Scale (const Vector3D &scale) |
| | Builds a matrix that scales about the origin.
|
| static Matrix< T, 4, 4 > | Scale (const Vector3D &scale, const Vector3D ¢er) |
| | Builds a matrix that scales about an arbitrary center point.
|
| static Matrix< T, 4, 4 > | Translate (const Vector3D &translation) |
| | Builds a translation matrix.
|
template<typename T, size_t Rows, size_t Cols>
class Sleak::Math::Matrix< T, Rows, Cols >
Row-major fixed-size matrix with the usual algebra plus 4x4 view/projection factory methods. Rows==Cols gives an identity default.
Definition at line 20 of file Matrix.hpp.