|
Sen API
Sen Libraries
|
Handles all mathematical ops involving 3D Matrices. More...
#include <mat3.h>
Public Member Functions | |
| Mat3 ()=default | |
| ~Mat3 ()=default | |
| Mat3 (std::initializer_list< std::initializer_list< T > > list) | |
| Initializer list constructor. | |
| T & | operator() (u32 row, u32 col) |
| Allows read/write access to the elements of the matrix. | |
| T | operator() (u32 row, u32 col) const |
| Allows read-only access to the elements of the matrix. | |
| void | transpose (const Mat3 &value) |
| Transforms a matrix into its transpose. | |
| void | mult (const Mat3 &lhs, const Mat3 &rhs) |
| Performs a matrix multiplication and stores the result in the current instance. | |
| void | preMult (const Mat3 &other) |
| Pre-multiplies the matrix given as argument to the current instance. | |
| void | postMult (const Mat3 &other) |
| Post-multiplies the matrix given as argument to the current instance. | |
| Vec3< T > | preMult (const Vec3< T > &vec) const noexcept |
| Pre-multiplies the vector given as argument to the current instance. | |
| Vec3< T > | postMult (const Vec3< T > &vec) const noexcept |
| Post-multiplies the vector given as argument to the current instance. | |
| Vec3< T > | operator* (const Vec3< T > &vec) const noexcept |
| Operator for post-multiplying the matrix by a vector. | |
| Mat3 | operator* (const Mat3 &other) const noexcept |
| Operator for post-multiplying the matrix by another matrix. | |
| Mat3 | operator* (T scalar) const noexcept |
| Operator for multiplying the matrix by a constant. | |
| Mat3 | operator+ (const Mat3 &other) const noexcept |
| Operator for summing the matrix with another matrix. | |
Static Public Member Functions | |
| static Mat3 | makeIdentity () |
| Constructs an identity matrix. | |
| static Mat3 | makeFromEulerYPB (const Vec3d &eulerAngles) |
| Returns the world to body transformation matrix given the Euler angles. | |
| static Mat3 | makeTransposedFromEulerYPB (const Vec3d &eulerAngles) |
| Returns the world to body transformation matrix given the Euler angles. | |
| static Mat3 | makeOmegaOmegaTranspose (const Vec3d &omega) |
| Returns the matrix generated when multiplying the angular velocity vector by its transpose. | |
| static Mat3 | makeSkewMatrix (const Vec3d &omega) |
| Returns the skew matrix given an angular velocity. | |
Handles all mathematical ops involving 3D Matrices.
|
default |
|
default |
| sen::util::Mat3< T >::Mat3 | ( | std::initializer_list< std::initializer_list< T > > | list | ) |
Initializer list constructor.
|
static |
Constructs an identity matrix.
|
static |
Returns the world to body transformation matrix given the Euler angles.
|
static |
Returns the world to body transformation matrix given the Euler angles.
|
static |
Returns the matrix generated when multiplying the angular velocity vector by its transpose.
|
static |
Returns the skew matrix given an angular velocity.
|
inline |
Allows read/write access to the elements of the matrix.
|
inline |
Allows read-only access to the elements of the matrix.
|
inline |
Transforms a matrix into its transpose.
|
inline |
Performs a matrix multiplication and stores the result in the current instance.
|
inline |
Pre-multiplies the matrix given as argument to the current instance.
|
inline |
Post-multiplies the matrix given as argument to the current instance.
|
nodiscardnoexcept |
Pre-multiplies the vector given as argument to the current instance.
|
inlinenodiscardnoexcept |
Post-multiplies the vector given as argument to the current instance.
|
inlinenodiscardnoexcept |
Operator for post-multiplying the matrix by a vector.
|
inlinenoexcept |
Operator for post-multiplying the matrix by another matrix.
|
inlinenoexcept |
Operator for multiplying the matrix by a constant.
|
inlinenoexcept |
Operator for summing the matrix with another matrix.