21 using Elements = std::array<std::array<T, 2>, 2>;
27 TMatrix2(T m00, T m01, T m10, T m11);
56 const std::array<T, 2>& b,
57 std::array<T, 2>* out_x)
const;
81 template<std::
size_t N>
83 const std::array<std::array<T, 2>, N>& bs,
84 std::array<std::array<T, 2>, N>* out_xs)
const;
Represents a 2x2 matrix.
Definition TMatrix2.h:16
TMatrix2 mul(const TMatrix2 &rhs) const
Definition TMatrix2.ipp:56
TMatrix2(const TMatrix2 &other)=default
std::string toString() const
Definition TMatrix2.ipp:178
static TMatrix2 makeIdentity()
Definition TMatrix2.ipp:17
Elements m
Definition TMatrix2.h:23
TMatrix2 & mulLocal(T value)
Definition TMatrix2.ipp:79
T determinant() const
Definition TMatrix2.ipp:97
std::array< std::array< T, 2 >, 2 > Elements
Definition TMatrix2.h:21
TMatrix2 & initIdentity()
Definition TMatrix2.ipp:47
TMatrix2 inverse() const
Definition TMatrix2.ipp:90
bool solve(const std::array< T, 2 > &b, std::array< T, 2 > *out_x) const
Solves linear systems of the form Ax = b.
Definition TMatrix2.ipp:103
Represents a 2-D vector.
Definition TVector2.h:19
Math functions and utilities.
Definition TransformInfo.h:10