3x2 float matrix class. More...
#include <Mat2x3f.h>
Public Member Functions | |
Mat3x2f (const Vec2f &_a, const Vec2f &_b, const Vec2f &_c) | |
Mat3x2f () | |
Construct NAN matrix. | |
![]() | |
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 Mat3x2f &v) const |
Equality operator. | |
bool | operator!= (const Mat3x2f &v) const |
Inequality operator. | |
const Mat3x2f | operator* (ScalarType k) const |
Multiply scalar onto matrix. All entries are multiplied by scalar. | |
const Mat3x2f | operator/ (ScalarType k) const |
Divide all entries in matrix by scalar. | |
const Mat3x2f & | operator*= (ScalarType k) |
Assignment multiplication of matrix by scalar. | |
const Mat3x2f & | operator/= (ScalarType k) |
Assignment division of matrix by scalar. | |
const Mat3x2f | operator+ (const Mat3x2f &m1) const |
Add two matrices. | |
const Mat3x2f | operator- (const Mat3x2f &m1) const |
Subtract two matrices. | |
const Mat3x2f | operator- () const |
Negate matrix. | |
const Mat3x2f & | operator+= (const Mat3x2f &v) |
Assigment addition of matrices. | |
const Mat3x2f & | operator-= (const Mat3x2f &v) |
Assigment subtraction of matrices. | |
Additional Inherited Members | |
![]() | |
typedef Vec2f | HVectorType |
Horizontal vector type. | |
typedef Vec3f | VVectorType |
Vertical vector type. | |
typedef Vec2f::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. | |
![]() | |
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. | |
![]() | |
Vec2f | data [ROWS] |
The actual contents of the matrix. | |
3x2 float matrix class.
This class is useful for going from plane to 3D coordinates.
Construct matrix from three Vec2f vectors which become the rows of the matrix.