#include <mat3.h>
|
| mat3 () |
|
| mat3 (const T &_a, const T &_b, const T &_c, const T &_d, const T &_e, const T &_f, const T &_g, const T &_h, const T &_i) |
|
| mat3 (const vec3< T > &A, const vec3< T > &B, const vec3< T > &C) |
|
| mat3 (T *vals) |
|
| ~mat3 ()=default |
|
mat3< T > | Transpose () |
|
mat3< T > | Inverse () |
|
bool | IsSymmetric () |
|
float | Determinant () |
|
mat3< T > & | operator+= (const mat3< T > &rhs) |
|
mat3< T > & | operator-= (const mat3< T > &rhs) |
|
mat3< T > & | operator*= (const mat3< T > &rhs) |
|
mat3< T > & | operator*= (const T &rhs) |
|
mat3< T > & | operator/= (const T &rhs) |
|
T * | operator[] (int index) |
|
const T * | operator[] (int index) const |
|
|
T | values [3][3] |
| loosely packed data
|
|
template<
class T>
struct mat3< T >
3D-Matrix representation
- Template Parameters
-
◆ mat3() [1/4]
default constructor, initializes null matrix
◆ mat3() [2/4]
9-element constructor
- Parameters
-
_a | |
_b | |
_c | |
_d | |
_e | |
_f | |
_g | |
_h | |
_i | |
◆ mat3() [3/4]
mat3(A, B, C) -> [A.x, B.x, C.x, A.y, B.y, C.y, A.z, B.z, C.z]
- Parameters
-
A | first column vector |
B | second column vector |
C | third column vector |
◆ mat3() [4/4]
Constructor from pointer of values
- Parameters
-
vals | array of arrays of values |
◆ ~mat3()
◆ Determinant()
calculates determinant
- Returns
◆ Inverse()
Potentially calculates the inverse matrix
- Returns
- inverse (A -> A^-1)
◆ IsSymmetric()
test for symmetry
- Returns
◆ operator*=() [1/2]
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator*=() [2/2]
matrix-scalar multiplication
- Parameters
-
- Returns
◆ operator+=()
matrix-matrix addition
- Parameters
-
- Returns
◆ operator-=()
matrix-matrix subtraction
- Parameters
-
- Returns
◆ operator/=()
matrix-scalar division
- Parameters
-
- Returns
◆ operator[]() [1/2]
member access
- Parameters
-
- Returns
◆ operator[]() [2/2]
member access
- Parameters
-
- Returns
◆ Transpose()
Getter for transposed matrix
- Returns
◆ Unit()
◆ operator* [1/3]
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator* [2/3]
Matrix-scalar multiplication
- Parameters
-
- Returns
◆ operator* [3/3]
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator+
matrix-matrix addition
- Parameters
-
- Returns
◆ operator-
matrix-matrix subtraction
- Parameters
-
- Returns
◆ operator/
matrix-scalar division
- Parameters
-
- Returns
◆ operator<<
beautified std::cout operator
- Template Parameters
-
- Returns
◆ values
The documentation for this struct was generated from the following file: