#include <mat4.h>
|
| mat4 () |
|
| mat4 (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, const T &_j, const T &_k, const T &_l, const T &_m, const T &_n, const T &_o, const T &_p) |
|
| mat4 (const vec4< T > &A, const vec4< T > &B, const vec4< T > &C, const vec4< T > &D) |
|
| mat4 (const T &_a) |
|
| ~mat4 ()=default |
|
mat4< T > | Transpose () |
|
bool | IsSymmetric () |
|
float | Determinant () |
|
mat3< T > | getMinor (const size_t &i, const size_t &j) |
|
mat4 | Inverse () |
|
mat4< T > & | operator+= (const mat4< T > &rhs) |
|
mat4< T > & | operator-= (const mat4< T > &rhs) |
|
mat4< T > & | operator*= (const mat4< T > &rhs) |
|
mat4< T > & | operator*= (const T &rhs) |
|
mat4< T > & | operator/= (const T &rhs) |
|
bool | operator== (const mat4< T > &rhs) |
|
bool | operator!= (const mat4< T > &rhs) |
|
T * | operator[] (int index) |
|
const T * | operator[] (int index) const |
|
template<class T>
struct mat4< T >
4D-matrix representation
- Template Parameters
-
- Examples
- TestUtils.cpp, and mat/TestMat4.cpp.
◆ mat4() [1/4]
◆ mat4() [2/4]
template<class T >
mat4< T >::mat4 |
( |
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, |
|
|
const T & |
_j, |
|
|
const T & |
_k, |
|
|
const T & |
_l, |
|
|
const T & |
_m, |
|
|
const T & |
_n, |
|
|
const T & |
_o, |
|
|
const T & |
_p |
|
) |
| |
|
inline |
16-element constructor
- Parameters
-
_a | |
_b | |
_c | |
_d | |
_e | |
_f | |
_g | |
_h | |
_i | |
_j | |
_k | |
_l | |
_m | |
_n | |
_o | |
_p | |
◆ mat4() [3/4]
column-based constructor
- Parameters
-
◆ mat4() [4/4]
single-value constructor
- Parameters
-
◆ ~mat4()
◆ Determinant()
template<class T >
float mat4< T >::Determinant |
( |
| ) |
|
|
inline |
computes determinant
- Returns
◆ getMinor()
template<class T >
mat3< T > mat4< T >::getMinor |
( |
const size_t & |
i, |
|
|
const size_t & |
j |
|
) |
| |
|
inline |
Get minor matrix by exclusion indices
- Parameters
-
i | row to exclude |
j | column to exclude |
- Returns
- values without row i and column j
◆ Inverse()
◆ IsSymmetric()
template<class T >
bool mat4< T >::IsSymmetric |
( |
| ) |
|
|
inline |
◆ operator!=()
template<class T >
bool mat4< T >::operator!= |
( |
const mat4< T > & |
rhs | ) |
|
|
inline |
not equal operator
- Parameters
-
- Returns
◆ operator*=() [1/2]
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator*=() [2/2]
template<class T >
mat4< T > & mat4< 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 >
mat4< T > & mat4< T >::operator/= |
( |
const T & |
rhs | ) |
|
|
inline |
matrix-scalar division
- Parameters
-
- Returns
◆ operator==()
template<class T >
bool mat4< T >::operator== |
( |
const mat4< T > & |
rhs | ) |
|
|
inline |
equality comparison operator
- Parameters
-
- Returns
◆ operator[]() [1/2]
template<class T >
T * mat4< T >::operator[] |
( |
int |
index | ) |
|
|
inline |
member access
- Parameters
-
- Returns
◆ operator[]() [2/2]
template<class T >
const T * mat4< T >::operator[] |
( |
int |
index | ) |
const |
|
inline |
const member access
- Parameters
-
- Returns
◆ Transformation()
template<class T >
static mat4< T > mat4< T >::Transformation |
( |
const mat3< T > & |
m | ) |
|
|
inlinestatic |
transforms around given matrix
- Parameters
-
- Returns
◆ Transpose()
◆ Unit()
◆ operator* [1/3]
template<class T >
mat4< T > operator* |
( |
mat4< T > |
lhs, |
|
|
const mat4< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator* [2/3]
template<class T >
mat4< T > operator* |
( |
mat4< T > |
lhs, |
|
|
const T & |
rhs |
|
) |
| |
|
friend |
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator* [3/3]
template<class T >
vec4< T > operator* |
( |
mat4< T > |
lhs, |
|
|
const vec4< T > & |
rhs |
|
) |
| |
|
friend |
scalar-matrix multiplication
- Parameters
-
- Returns
◆ operator+
template<class T >
mat4< T > operator+ |
( |
mat4< T > |
lhs, |
|
|
const mat4< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix addition
- Parameters
-
- Returns
◆ operator-
template<class T >
mat4< T > operator- |
( |
mat4< T > |
lhs, |
|
|
const mat4< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix subtraction
- Parameters
-
- Returns
◆ operator/
template<class T >
mat4< T > operator/ |
( |
mat4< T > |
lhs, |
|
|
const T & |
rhs |
|
) |
| |
|
friend |
matrix-matrix division
- Parameters
-
- Returns
◆ operator<<
template<class T >
template<class U >
std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const mat4< U > & |
mat |
|
) |
| |
|
friend |
beautified std::cout operator
- Template Parameters
-
- Returns
◆ values
template<class T >
T mat4< T >::values[4][4] |
The documentation for this struct was generated from the following file: