A 3 x 4 matrix.
Definition at line 8 of file Matrix.hh.
|
| constexpr | Matrix34f (f32 _e00, f32 _e01, f32 _e02, f32 _e03, f32 _e10, f32 _e11, f32 _e12, f32 _e13, f32 _e20, f32 _e21, f32 _e22, f32 _e23) |
| |
| bool | operator== (const Matrix34f &rhs) const |
| |
| f32 & | operator[] (size_t row, size_t col) |
| | Accesses the matrix element at the specified row and column.
|
| |
| f32 | operator[] (size_t row, size_t col) const |
| | Accesses the matrix element at the specified row and column.
|
| |
| void | makeQT (const Quatf &q, const Vector3f &t) |
| | Sets matrix from rotation and position.
|
| |
| void | makeQ (const Quatf &q) |
| | Sets rotation matrix from quaternion.
|
| |
| void | makeRT (const Vector3f &r, const Vector3f &t) |
| | Sets rotation-translation matrix.
|
| |
| void | makeR (const Vector3f &r) |
| | Sets 3x3 rotation matrix from a vector of Euler angles.
|
| |
| void | makeS (const Vector3f &s) |
| |
| void | makeT (const Vector3f &t) |
| |
| void | makeZero () |
| | Zeroes every element of the matrix.
|
| |
| void | makeOrthonormalBasis (const Vector3f &v0, const Vector3f &v1) |
| | Sets a 3x3 orthonormal basis for a local coordinate system.
|
| |
| void | setAxisRotation (f32 angle, const Vector3f &axis) |
| | Rotates the matrix about an axis.
|
| |
| void | mulRow33 (size_t rowIdx, const Vector3f &row) |
| | Multiplies one row of a 3x3 matrix by a vector.
|
| |
| void | setBase (size_t col, const Vector3f &base) |
| | Sets one column of a matrix.
|
| |
| Matrix34f | multiplyTo (const Matrix34f &rhs) const |
| | Multiplies two matrices.
|
| |
| Vector3f | multVector (const Vector3f &vec) const |
| | Multiplies a vector by a matrix.
|
| |
| Vector3f | ps_multVector (const Vector3f &vec) const |
| | Paired-singles impl. of multVector.
|
| |
| Vector3f | multVector33 (const Vector3f &vec) const |
| | Multiplies a 3x3 matrix by a vector.
|
| |
| Vector3f | ps_multVector33 (const Vector3f &vec) const |
| | Paired-singles impl. of multVector33.
|
| |
| void | inverseTo33 (Matrix34f &out) const |
| | Inverts the 3x3 portion of the 3x4 matrix.
|
| |
| bool | ps_inverse (Matrix34f &out) const |
| |
| Matrix34f | transpose () const |
| | Transposes the 3x3 portion of the matrix.
|
| |
| Vector3f | translation () const |
| |
| Vector3f | base (size_t col) const |
| | Get a particular column from a matrix.
|
| |
| void EGG::Matrix34f::makeOrthonormalBasis |
( |
const Vector3f & | forward, |
|
|
const Vector3f & | up ) |
|
0x805AE7B4 |
Sets a 3x3 orthonormal basis for a local coordinate system.
In a vector's orthogonal space, there are infinitely many vector pairs orthogonal to each other. To specify a particular pair and create a local coordinate system, a reference up vector from an existing coordinate system is provided.
- Parameters
-
| forward | The forward axis of the local coordinate system. |
| up | The reference up axis from an existing coordinate system. |
Definition at line 154 of file Matrix.cc.