diff --git a/include/smath.hpp b/include/smath.hpp index 2e302af..8376996 100644 --- a/include/smath.hpp +++ b/include/smath.hpp @@ -687,6 +687,14 @@ struct Mat : std::array, C> { } }; +using Mat2 = Mat<2, 2>; +using Mat3 = Mat<3, 3>; +using Mat4 = Mat<4, 4>; + +using Mat2d = Mat<2, 2, double>; +using Mat3d = Mat<3, 3, double>; +using Mat4d = Mat<4, 4, double>; + template [[nodiscard]] constexpr Vec operator*(Mat const &m, Vec const &v) noexcept {