#include <mat2.h>
template<class T>
struct mat2< T >
2D-Matrix representation
- Template Parameters
-
- Examples
- TestMatrix.cpp, TestUtils.cpp, and mat/TestMat2.cpp.
◆ mat2() [1/3]
default constructor, initializes null matrix
◆ mat2() [2/3]
template<class T >
mat2< T >::mat2 |
( |
const T & |
_a, |
|
|
const T & |
_b, |
|
|
const T & |
_c, |
|
|
const T & |
_d |
|
) |
| |
|
inline |
◆ mat2() [3/3]
mat2(A, B) -> [A.x, B.x, A.y, B.y]
- Parameters
-
A | first column vector |
B | second column vector |
◆ ~mat2()
◆ Determinant()
template<class T >
float mat2< T >::Determinant |
( |
| ) |
|
|
inline |
getter for matrix determinant
- Returns
◆ Inverse()
◆ IsSymmetric()
template<class T >
bool mat2< T >::IsSymmetric |
( |
| ) |
|
|
inline |
◆ operator*=() [1/2]
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator*=() [2/2]
template<class T >
mat2< T > & mat2< 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 >
mat2< T > & mat2< T >::operator/= |
( |
const T & |
rhs | ) |
|
|
inline |
matrix-scalar division
- Parameters
-
- Returns
◆ operator[]() [1/2]
template<class T >
T * mat2< T >::operator[] |
( |
const int & |
index | ) |
|
|
inline |
element access
- Parameters
-
- Returns
◆ operator[]() [2/2]
template<class T >
const T * mat2< T >::operator[] |
( |
const int & |
index | ) |
const |
|
inline |
element access
- Parameters
-
- Returns
◆ Transpose()
◆ Unit()
◆ operator* [1/3]
template<class T >
mat2< T > operator* |
( |
mat2< T > |
lhs, |
|
|
const mat2< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator* [2/3]
template<class T >
mat2< T > operator* |
( |
mat2< T > |
lhs, |
|
|
const T & |
rhs |
|
) |
| |
|
friend |
matrix-scalar multiplication
- Parameters
-
- Returns
◆ operator* [3/3]
template<class T >
vec2< T > operator* |
( |
mat2< T > |
lhs, |
|
|
const vec2< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix multiplication
- Parameters
-
- Returns
◆ operator+
template<class T >
mat2< T > operator+ |
( |
mat2< T > |
lhs, |
|
|
const mat2< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix addition
- Parameters
-
- Returns
◆ operator-
template<class T >
mat2< T > operator- |
( |
mat2< T > |
lhs, |
|
|
const mat2< T > & |
rhs |
|
) |
| |
|
friend |
matrix-matrix subtraction
- Parameters
-
- Returns
◆ operator/
template<class T >
mat2< T > operator/ |
( |
mat2< 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 mat2< U > & |
mat |
|
) |
| |
|
friend |
beautified std::cout operator
- Template Parameters
-
- Returns
◆ values
template<class T >
T mat2< T >::values[2][2] |
The documentation for this struct was generated from the following file: