Two by two float matrix. More...
#include <Mat2x2f.h>
Public Member Functions | |
| Mat2x2f (Vec2f _a, Vec2f _b) | |
| Construct a Mat2x2f from two Vec2f vectors. | |
| Mat2x2f (float _a, float _b, float _c, float _d) | |
| Construct a Mat2x2f from four scalars. | |
| Mat2x2f () | |
| Construct the NAN matrix. | |
| Mat2x2f (float a) | |
| Construct a Mat2x2f from a single scalar. | |
Public Member Functions inherited from CGLA::ArithSqMat2x2Float< Vec2f, Mat2x2f > | |
| ArithSqMat2x2Float (Vec2fa, Vec2fb) | |
| Construct a Mat2x2f from two Vec2f vectors. | |
| ArithSqMat2x2Float (ScalarType a, ScalarType b, ScalarType c, ScalarType d) | |
| Construct a Mat2x2f from four scalars. | |
| ArithSqMat2x2Float () | |
| Construct the NAN matrix. | |
| ArithSqMat2x2Float (ScalarType a) | |
| Construct a matrix from a single scalar value. | |
Public Member Functions inherited from CGLA::ArithSqMatFloat< Vec2f, Mat2x2f, 2 > | |
| const Mat2x2f & | operator*= (const Mat2x2f &m2) noexcept |
| const Mat2x2f & | operator*= (ScalarType k) noexcept |
| void | identity () |
Public Member Functions inherited from CGLA::ArithMatFloat< Vec2f, Vec2f, Mat2x2f, ROWS > | |
| const ScalarType * | get () const |
| ScalarType * | get () |
| const Vec2f & | operator[] (unsigned int i) const |
| Const index operator. Returns i'th row of matrix. | |
| Vec2f & | operator[] (unsigned int i) |
| Non-const index operator. Returns i'th row of matrix. | |
| bool | operator== (const Mat2x2f &v) const |
| Equality operator. | |
| bool | operator!= (const Mat2x2f &v) const |
| Inequality operator. | |
| const Mat2x2f | operator* (ScalarType k) const |
| Multiply scalar onto matrix. All entries are multiplied by scalar. | |
| const Mat2x2f | operator/ (ScalarType k) const |
| Divide all entries in matrix by scalar. | |
| const Mat2x2f & | operator*= (ScalarType k) |
| Assignment multiplication of matrix by scalar. | |
| const Mat2x2f & | operator/= (ScalarType k) |
| Assignment division of matrix by scalar. | |
| const Mat2x2f | operator+ (const Mat2x2f &m1) const |
| Add two matrices. | |
| const Mat2x2f | operator- (const Mat2x2f &m1) const |
| Subtract two matrices. | |
| const Mat2x2f | operator- () const |
| Negate matrix. | |
| const Mat2x2f & | operator+= (const Mat2x2f &v) |
| Assigment addition of matrices. | |
| const Mat2x2f & | operator-= (const Mat2x2f &v) |
| Assigment subtraction of matrices. | |
Additional Inherited Members | |
Public Types inherited from CGLA::ArithSqMat2x2Float< Vec2f, Mat2x2f > | |
| typedef Vec2f | VectorType |
| Vector type. | |
| typedef Vec2f::ScalarType | ScalarType |
| The type of a matrix element. | |
Public Types inherited from CGLA::ArithSqMatFloat< Vec2f, Mat2x2f, 2 > | |
| typedef Vec2f | VectorType |
| Vector type. | |
| typedef Vec2f::ScalarType | ScalarType |
| The type of a matrix element. | |
Public Types inherited from CGLA::ArithMatFloat< Vec2f, Vec2f, Mat2x2f, ROWS > | |
| typedef Vec2f | HVectorType |
| Horizontal vector type. | |
| typedef Vec2f | VVectorType |
| Vertical vector type. | |
| typedef Vec2f::ScalarType | ScalarType |
| The type of a matrix element. | |
Static Public Member Functions inherited from CGLA::ArithMatFloat< Vec2f, Vec2f, Mat2x2f, ROWS > | |
| static unsigned int | get_v_dim () |
| Get vertical dimension of matrix. | |
| static unsigned int | get_h_dim () |
| Get horizontal dimension of matrix. | |
Protected Member Functions inherited from CGLA::ArithSqMatFloat< Vec2f, Mat2x2f, 2 > | |
| ArithSqMatFloat () noexcept | |
| Construct 0 matrix. | |
| ArithSqMatFloat (ScalarType _a) noexcept | |
| Construct matrix where all values are equal to constructor argument. | |
| ArithSqMatFloat (Vec2f_a, Vec2f_b) noexcept | |
| Construct 2x2 Matrix from two vectors. | |
| ArithSqMatFloat (Vec2f_a, Vec2f_b, Vec2f_c) noexcept | |
| Construct 3x3 Matrix from three vectors. | |
| ArithSqMatFloat (Vec2f_a, Vec2f_b, Vec2f_c, Vec2f_d) noexcept | |
| Construct 4x4 Matrix from four vectors. | |
Protected Member Functions inherited from CGLA::ArithMatFloat< Vec2f, Vec2f, Mat2x2f, ROWS > | |
| ArithMatFloat () | |
| Construct 0 matrix. | |
| ArithMatFloat (ScalarType x) | |
| Construct a matrix where all entries are the same. | |
| ArithMatFloat (Vec2f_a) | |
| Construct a matrix where all rows are the same. | |
| ArithMatFloat (Vec2f_a, Vec2f_b) | |
| Construct a matrix with two rows. | |
| ArithMatFloat (Vec2f_a, Vec2f_b, Vec2f_c) | |
| Construct a matrix with three rows. | |
| ArithMatFloat (Vec2f_a, Vec2f_b, Vec2f_c, Vec2f_d) | |
| Construct a matrix with four rows. | |
Protected Attributes inherited from CGLA::ArithMatFloat< Vec2f, Vec2f, Mat2x2f, ROWS > | |
| Vec2f | data [ROWS] |
| The actual contents of the matrix. | |
Two by two float matrix.
This class is useful for various vector transformations in the plane.
1.8.6