3x3 dimensional matrix.
More...
#include <Geometry.hpp>
|
|
| Mat3 () |
| | Construct a new Mat3 with uninitialized values.
|
| |
| | Mat3 (const T &m) |
| | Construct a new Mat3 and initialize all entries with the same value. More...
|
| |
| | Mat3 (const Vec3< T > &a0, const Vec3< T > &a1, const Vec3< T > &a2) |
| | Construct a new Mat3 object and initialize the column vectors. More...
|
| |
| | Mat3 (const T &m00, const T &m01, const T &m02, const T &m10, const T &m11, const T &m12, const T &m20, const T &m21, const T &m22) |
| | Construct a new Mat3 object and initialize entries. More...
|
| |
| T | determinant () const |
| | Calculate the determinant of a Mat3 object. More...
|
| |
| Mat3< T > | inverse () const |
| | Calculate the inverse of a matrix. More...
|
| |
|
|
T | data [3][3] |
| | Matrix entries in row-major order.
|
| |
template<typename T>
struct geometry::Mat3< T >
3x3 dimensional matrix.
- Template Parameters
-
| T | Underlying fundamental data type. |
◆ Mat3() [1/3]
Construct a new Mat3 and initialize all entries with the same value.
- Parameters
-
| m | Value to initialize entries. |
◆ Mat3() [2/3]
Construct a new Mat3 object and initialize the column vectors.
- Parameters
-
| a0 | First column vector. |
| a1 | Second column vector. |
| a2 | Third column vector. |
◆ Mat3() [3/3]
template<typename T >
| geometry::Mat3< T >::Mat3 |
( |
const T & |
m00, |
|
|
const T & |
m01, |
|
|
const T & |
m02, |
|
|
const T & |
m10, |
|
|
const T & |
m11, |
|
|
const T & |
m12, |
|
|
const T & |
m20, |
|
|
const T & |
m21, |
|
|
const T & |
m22 |
|
) |
| |
|
inline |
Construct a new Mat3 object and initialize entries.
- Parameters
-
| m00 | Top left entry. |
| m01 | Top middle entry. |
| m02 | Top right entry. |
| m10 | Middle left entry. |
| m11 | Middle middle entry. |
| m12 | Middle right entry. |
| m20 | Bottom left entry. |
| m21 | Bottom middle entry. |
| m22 | Bottom right entry. |
◆ determinant()
Calculate the determinant of a Mat3 object.
- Returns
- T Value of the determinant.
◆ identity()
Generate a 3x3 identity matrix.
- Returns
- Mat3<T> Identity matrix.
◆ inverse()
Calculate the inverse of a matrix.
- Returns
- Mat3<T> Inverse matrix.
The documentation for this struct was generated from the following file:
- /home/runner/work/SpinParser/SpinParser/src/lib/Geometry.hpp