From 37f085ee366733f5db947ff89585f7f656ee9450 Mon Sep 17 00:00:00 2001 From: Slendi Date: Thu, 4 Dec 2025 17:17:00 +0200 Subject: [PATCH] Quick matrix aliases Signed-off-by: Slendi --- include/smath.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 {