4x4 float matrix. This class is useful for transformations such as perspective projections or translation where 3x3 matrices do not suffice. More...
#include <Mat4x4f.h>
Public Member Functions | |
Mat4x4f (Vec4f _a, Vec4f _b, Vec4f _c, Vec4f _d) | |
Construct a Mat4x4f from four Vec4f vectors. | |
Mat4x4f () | |
Construct the NaN matrix. | |
Mat4x4f (float a) | |
Construct a matrix with identical elements. | |
![]() | |
ArithSqMat4x4Float (Vec4fa, Vec4fb, Vec4fc, Vec4fd) noexcept | |
Construct a Mat4x4f from four V vectors. | |
ArithSqMat4x4Float () noexcept | |
Construct the NAN matrix. | |
ArithSqMat4x4Float (ScalarType _a) noexcept | |
Construct matrix where all values are equal to constructor argument. | |
const VecT | mul_3D_vector (const ArithVec3Float< T, VecT > &v_in) const |
const VecT | mul_3D_point (const ArithVec3Float< T, VecT > &v_in) const |
const VecT | project_3D_point (const ArithVec3Float< T, VecT > &v_in) const |
![]() | |
const Mat4x4f & | operator*= (const Mat4x4f &m2) noexcept |
const Mat4x4f & | operator*= (ScalarType k) noexcept |
void | identity () |
![]() | |
const ScalarType * | get () const |
ScalarType * | get () |
const Vec4f & | operator[] (unsigned int i) const |
Const index operator. Returns i'th row of matrix. | |
Vec4f & | operator[] (unsigned int i) |
Non-const index operator. Returns i'th row of matrix. | |
bool | operator== (const Mat4x4f &v) const |
Equality operator. | |
bool | operator!= (const Mat4x4f &v) const |
Inequality operator. | |
const Mat4x4f | operator* (ScalarType k) const |
Multiply scalar onto matrix. All entries are multiplied by scalar. | |
const Mat4x4f | operator/ (ScalarType k) const |
Divide all entries in matrix by scalar. | |
const Mat4x4f & | operator*= (ScalarType k) |
Assignment multiplication of matrix by scalar. | |
const Mat4x4f & | operator/= (ScalarType k) |
Assignment division of matrix by scalar. | |
const Mat4x4f | operator+ (const Mat4x4f &m1) const |
Add two matrices. | |
const Mat4x4f | operator- (const Mat4x4f &m1) const |
Subtract two matrices. | |
const Mat4x4f | operator- () const |
Negate matrix. | |
const Mat4x4f & | operator+= (const Mat4x4f &v) |
Assigment addition of matrices. | |
const Mat4x4f & | operator-= (const Mat4x4f &v) |
Assigment subtraction of matrices. | |
Additional Inherited Members | |
![]() | |
typedef Vec4f | VectorType |
Vector type. | |
typedef Vec4f::ScalarType | ScalarType |
The type of a matrix element. | |
![]() | |
typedef Vec4f | VectorType |
Vector type. | |
typedef Vec4f::ScalarType | ScalarType |
The type of a matrix element. | |
![]() | |
typedef Vec4f | HVectorType |
Horizontal vector type. | |
typedef Vec4f | VVectorType |
Vertical vector type. | |
typedef Vec4f::ScalarType | ScalarType |
The type of a matrix element. | |
![]() | |
static unsigned int | get_v_dim () |
Get vertical dimension of matrix. | |
static unsigned int | get_h_dim () |
Get horizontal dimension of matrix. | |
![]() | |
ArithSqMatFloat () noexcept | |
Construct 0 matrix. | |
ArithSqMatFloat (ScalarType _a) noexcept | |
Construct matrix where all values are equal to constructor argument. | |
ArithSqMatFloat (Vec4f_a, Vec4f_b) noexcept | |
Construct 2x2 Matrix from two vectors. | |
ArithSqMatFloat (Vec4f_a, Vec4f_b, Vec4f_c) noexcept | |
Construct 3x3 Matrix from three vectors. | |
ArithSqMatFloat (Vec4f_a, Vec4f_b, Vec4f_c, Vec4f_d) noexcept | |
Construct 4x4 Matrix from four vectors. | |
![]() | |
ArithMatFloat () | |
Construct 0 matrix. | |
ArithMatFloat (ScalarType x) | |
Construct a matrix where all entries are the same. | |
ArithMatFloat (Vec4f_a) | |
Construct a matrix where all rows are the same. | |
ArithMatFloat (Vec4f_a, Vec4f_b) | |
Construct a matrix with two rows. | |
ArithMatFloat (Vec4f_a, Vec4f_b, Vec4f_c) | |
Construct a matrix with three rows. | |
ArithMatFloat (Vec4f_a, Vec4f_b, Vec4f_c, Vec4f_d) | |
Construct a matrix with four rows. | |
![]() | |
Vec4f | data [ROWS] |
The actual contents of the matrix. | |
4x4 float matrix. This class is useful for transformations such as perspective projections or translation where 3x3 matrices do not suffice.