From b060f6a6d41d71ec033c2cee27b0feead2804984 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Tue, 31 Oct 2023 16:11:38 +0800 Subject: [PATCH] added Quat4f,Matrix2f,Identity2f/3f/4f/3x4f --- inc/hgl/math/Matrix.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/hgl/math/Matrix.h b/inc/hgl/math/Matrix.h index 7f45f25..dc85474 100644 --- a/inc/hgl/math/Matrix.h +++ b/inc/hgl/math/Matrix.h @@ -10,10 +10,18 @@ namespace hgl { + using Quat4f=glm::quat; + + using Matrix2f=glm::mat2; using Matrix3f=glm::mat3; using Matrix4f=glm::mat4; using Matrix3x4f=glm::mat3x4; + constexpr const Matrix2f Identity2f=Matrix2f(1.0f); + constexpr const Matrix3f Identity3f=Matrix3f(1.0f); + constexpr const Matrix4f Identity4f=Matrix4f(1.0f); + constexpr const Matrix3f Identity3x4f=Matrix3x4f(1.0f); + inline Matrix4f inverse(const Matrix4f &m) { return glm::inverse(m);