|
| Matrix4 () |
| Construct identity matrix. More...
|
|
| Matrix4 (const float values[16]) |
| Construct from array. More...
|
|
| Matrix4 (const Matrix< 4, 4 > &mat) |
| Construct from base class. More...
|
|
| Matrix4 (const Matrix< 3, 4 > &mat) |
| Construct from 3x4 matrix. More...
|
|
| Matrix4 (const Matrix< 3, 3 > &mat) |
| Construct from 3x3 matrix. More...
|
|
| Matrix4 (float m00, float m10, float m20, float m30, float m01, float m11, float m21, float m31, float m02, float m12, float m22, float m32, float m03, float m13, float m23, float m33) |
| Construct from individual components. More...
|
|
Vector4 | operator* (const Vector4 &v) const |
|
Vector3 | GetTranslation () const |
| Extract translation. More...
|
|
Matrix3 | GetUpperLeft3x3 () const |
| Extract upper left 3x3 matrix. More...
|
|
Vector4 | GetRow (int row) const |
| Get row of matrix. More...
|
|
| Matrix ()=default |
| Default constructor. More...
|
|
| Matrix (const floatvalues[rows *cols]) |
| Construct matrix from an array in row-major order. More...
|
|
| Matrix (const floatvalues[rows][cols]) |
| Construct matrix from two-dimensional array. More...
|
|
| Matrix (std::initializer_list< float > init) |
|
| Matrix (const Eigen::MatrixBase< OtherDerived > &other) |
| Construct from Eigen expression. More...
|
|
Matrix & | operator= (const Eigen::MatrixBase< OtherDerived > &other) |
| Assign from Eigen expression. More...
|
|
const float * | Get () const |
| Returns array of matrix elements in row-major order. More...
|
|
float * | operator[] (int row) |
|
const float * | operator[] (int row) const |
|
float | operator() (int row, int col) const |
|
float & | operator() (int row, int col) |
|
auto | ToEigen () |
|
auto | ToEigen () const |
|
Matrix< rows, M::kCols, float > | operator* (const M &mat) const |
| Matrix-matrix multiplication. More...
|
|
Matrix | operator* (ValueType s) const |
| Matrix-scalar multiplication. More...
|
|
Matrix | operator+ (const Matrix &mat) const |
|
Matrix & | operator+= (const Matrix &mat) |
|
Matrix & | operator*= (const Matrix &mat) |
|
Matrix & | operator*= (ValueType s) |
|
Matrix & | operator/= (ValueType s) |
|
void | SetIdentity () |
|
Matrix< M::kRows, M::kCols+cols, float > | Augmented (const M &mat) const |
| Returns the matrix with mat concatenated to the right side. More...
|
|
Matrix< rows, newcols, float > | SubMatrixRight () const |
| Returns the right portion of the matrix with the given width. More...
|
|
Matrix< rows, newcols, float > | SubMatrixLeft () const |
| Returns the left portion of the matrix with the given width. More...
|
|
void | Print () const |
|
Matrix< rows, cols, float > | Inverse () const |
| Returns the inverse of the matrix. More...
|
|
Matrix< cols, rows, float > | Transposed () const |
| Returns the transposed of the matrix. More...
|
|
float | Trace () const |
| Returns the sum of the diagonal elements. More...
|
|
|
static Matrix4 | ProjectionPerspective (float fieldOfView, float aspectRatio, float near, float far) |
| Create perspective projection matrix. More...
|
|
static Matrix4 | ProjectionOrthographic (float width, float height, float nearPlane, float farPlane) |
| Create orthographic projection matrix. More...
|
|
static Matrix4 | RotationX (float a) |
| Create transform matrix representing a rotation around X. More...
|
|
static Matrix4 | RotationY (float a) |
| Create transform matrix representing a rotation around Y. More...
|
|
static Matrix4 | RotationZ (float a) |
| Create transform matrix representing a rotation around Z. More...
|
|
static Matrix4 | Translation (float x, float y, float z) |
| Create transform matrix representing a translation. More...
|
|
static Matrix4 | Translation (const Vector3 &xyz) |
| Create transform matrix representing a translation. More...
|
|
static Matrix4 | Scale (float x, float y, float z) |
| Create transform matrix representing a scale operation. More...
|
|
static Matrix4 | Scale (float xyz) |
| Create transform matrix representing a scale operation. More...
|
|
static Matrix | Identity () |
|
static Matrix | Zeros () |
|
A 4x4 matrix.
Specialized type used for 3D transformations.