Class implementing model transformation matrix named constructors. More...
#include </home/chochlik/devel/oglplus/include/oglplus/math/matrix.hpp>
Public Member Functions | |
ModelMatrix (void) | |
Constructs an identity matrix. | |
const T * | Data (void) const |
Returns a pointer to the matrix elements in row major order. | |
std::size_t | Size (void) const |
Returns the number of elements of the matrix. | |
T | At (std::size_t i, std::size_t j) const |
Returns the value of the element at position i, j. More... | |
void | Set (std::size_t i, std::size_t j, T v) |
Sets the value of the element at position i, j. More... | |
Vector< T, Cols > | Row (std::size_t i) const |
Returns the i-th row of this matrix. More... | |
Vector< T, Rows > | Col (std::size_t j) const |
Return the j-th column of this matrix. More... | |
Matrix< T, R, C > | Submatrix (void) const |
Submatrix extraction. | |
Static Public Member Functions | |
static ModelMatrix | Translation (T dx, T dy, T dz) |
Constructs a translation matrix. | |
static ModelMatrix | TranslationX (T dx) |
Constructs a translation matrix. | |
static ModelMatrix | TranslationY (T dy) |
Constructs a translation matrix. | |
static ModelMatrix | TranslationZ (T dz) |
Constructs a translation matrix. | |
static ModelMatrix | Translation (const Vector< T, 3 > &dp) |
Constructs a translation matrix. | |
static ModelMatrix | Scale (T sx, T sy, T sz) |
Constructs a scale matrix. | |
static ModelMatrix | Reflection (bool rx, bool ry, bool rz) |
Constructs a reflection matrix. | |
static ModelMatrix | RotationX (Angle< T > angle) |
Constructs a X-axis rotation matrix. | |
static ModelMatrix | RotationY (Angle< T > angle) |
Constructs a Y-axis rotation matrix. | |
static ModelMatrix | RotationZ (Angle< T > angle) |
Constructs a Z-axis rotation matrix. | |
static ModelMatrix | RotationA (const Vector< T, 3 > &axis, Angle< T > angle) |
Constructs a rotation matrix from a vector and angle. | |
static ModelMatrix | RotationQ (const Quaternion< T > &quat) |
Constructs a rotation matrix from a quaternion. | |
Class implementing model transformation matrix named constructors.
The static member functions of this class can be used to construct various model transformation matrices.
|
inherited |
Returns the value of the element at position i, j.
Return the j-th column of this matrix.
Returns the i-th row of this matrix.
|
inherited |
Sets the value of the element at position i, j.