matrix2
Fully qualified name: omni::math::linalg::matrix2
- 
template<typename T>
 class matrix2 : public omni::math::linalg::base_matrix<T, 2>
 
- 
Public Functions 
- 
matrix2() = default
 
 
- 
constexpr matrix2(const this_type&) = default
 
 
- 
constexpr this_type &operator=(const this_type&) = default
 
 
- 
inline matrix2(const base_type &other)
 
 
- 
template<typename OTHER_T>
 inline explicit matrix2(
- const matrix2<OTHER_T> &other,
 )
 
 
- 
inline matrix2(T v00, T v01, T v10, T v11)
 
 
- 
inline this_type &Set(const T m[numRows][numColumns])
 
 
- 
inline this_type &Set(T v00, T v01, T v10, T v11)
 
 
- 
inline this_type &SetIdentity()
 
 
- 
inline this_type &SetZero()
 
 
- 
inline this_type &SetDiagonal(T scalar)
 
 
- 
inline this_type &SetDiagonal(
- const base_vec<T, numRows> &diagonal,
 )
 
 
- 
inline this_type GetTranspose() const
 
 
- 
inline this_type GetInverse(T *det = nullptr, T epsilon = T(0)) const
 
 
- 
inline T GetDeterminant() const
 
 
- 
inline this_type &operator*=(const base_type &other)
 
 
- 
inline this_type &operator*=(T scalar)
 
 
- 
inline this_type &operator+=(const base_type &other)
 
 
- 
inline this_type &operator-=(const base_type &other)
 
 
- 
inline this_type operator-() const
 
 
- 
inline void SetRow(
- size_t rowIndex,
- const base_vec<T, N> &rowValues,
 )
 
 
- 
inline void SetColumn(
- size_t colIndex,
- const base_vec<T, N> &colValues,
 )
 
 
- 
inline base_vec<T, N> GetRow(size_t rowIndex) const
 
 
- 
inline base_vec<T, N> GetColumn(size_t colIndex) const
 
 
- 
inline base_matrix<T, N> &Set(const T m[N][N])
 
 
- 
inline base_matrix<T, N> &SetDiagonal(
- const base_vec<T, N> &diagonal,
 )
 
 
- 
inline T *Get(T m[N][N]) const
 
 
- 
inline T *data()
 
 
- 
inline const T *data() const
 
 
- 
inline T *GetArray()
 
 
- 
inline const T *GetArray() const
 
 
- 
inline T *operator[](size_t row)
 
 
- 
inline const T *operator[](size_t row) const
 
 
- 
inline bool operator==(const base_matrix<T, N> &other) const
 
 
- 
inline bool operator==(const base_matrix<OTHER_T, N> &other) const
 
 
- 
inline bool operator!=(const base_matrix<T, N> &other) const
 
 
- 
inline bool operator!=(const base_matrix<OTHER_T, N> &other) const
 
 
- 
inline base_matrix<T, N> &operator*=(
- const base_matrix<T, N> &other,
 )
 
 
- 
inline base_matrix<T, N> &operator+=(
- const base_matrix<T, N> &other,
 )
 
 
- 
inline base_matrix<T, N> &operator-=(
- const base_matrix<T, N> &other,
 )
 
 
 
Public Static Attributes 
- 
static const size_t numRows
 
 
- 
static const size_t numColumns
 
 
 
Protected Attributes 
- 
T v[N][N]