#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 |
|
template<class T>
struct mat3< T >
3D-Matrix representation
- Template Parameters
-
- Examples
- TestUtils.cpp, and mat/TestMat3.cpp.
◆ mat3() [1/4]
default constructor, initializes null matrix
◆ mat3() [2/4]
template<class T >
mat3< T >::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 |
|
) |
| |
|
inline |
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()
template<class T >
float mat3< T >::Determinant |
( |
| ) |
|
|
inline |
calculates determinant
- Returns
◆ Inverse()
Potentially calculates the inverse matrix
- Returns
- inverse (A -> A^-1)
◆ IsSymmetric()
template<class T >
bool mat3< T >::IsSymmetric |
( |
| ) |
|
|
inline |
◆ operator*=() [1/2]
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator*=() [2/2]
template<class T >
mat3< T > & mat3< T >::operator*= |
( |
const T & |
rhs | ) |
|
|
inline |
matrix-scalar multiplication
- Parameters
-
- Returns
◆ operator+=()
matrix-matrix addition
- Parameters
-
- Returns
◆ operator-=()
matrix-matrix subtraction
- Parameters
-
- Returns
◆ operator/=()
template<class T >
mat3< T > & mat3< T >::operator/= |
( |
const T & |
rhs | ) |
|
|
inline |
matrix-scalar division
- Parameters
-
- Returns
◆ operator[]() [1/2]
template<class T >
T * mat3< T >::operator[] |
( |
int |
index | ) |
|
|
inline |
member access
- Parameters
-
- Returns
◆ operator[]() [2/2]
template<class T >
const T * mat3< T >::operator[] |
( |
int |
index | ) |
const |
|
inline |
member access
- Parameters
-
- Returns
◆ Transpose()
◆ Unit()
◆ operator* [1/3]
template<class T >
mat3< T > operator* |
( |
mat3< T > |
lhs, |
|
|
const mat3< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator* [2/3]
template<class T >
mat3< T > operator* |
( |
mat3< T > |
lhs, |
|
|
const T & |
rhs |
|
) |
| |
|
friend |
Matrix-scalar multiplication
- Parameters
-
- Returns
◆ operator* [3/3]
template<class T >
vec3< T > operator* |
( |
mat3< T > |
lhs, |
|
|
const vec3< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator+
template<class T >
mat3< T > operator+ |
( |
mat3< T > |
lhs, |
|
|
const mat3< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix addition
- Parameters
-
- Returns
◆ operator-
template<class T >
mat3< T > operator- |
( |
mat3< T > |
lhs, |
|
|
const mat3< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix subtraction
- Parameters
-
- Returns
◆ operator/
template<class T >
mat3< T > operator/ |
( |
mat3< T > |
lhs, |
|
|
const T & |
rhs |
|
) |
| |
|
friend |
matrix-scalar division
- Parameters
-
- Returns
◆ operator<<
template<class T >
template<class U >
std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const mat3< U > & |
mat |
|
) |
| |
|
friend |
beautified std::cout operator
- Template Parameters
-
- Returns
◆ values
template<class T >
T mat3< T >::values[3][3] |
The documentation for this struct was generated from the following file: