From 7feefc65c96d704f05b43f266b30e628fad5e539 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 29 Jul 2024 13:18:48 +0800 Subject: [PATCH] renamed to Transform from TransformMatrix4f --- inc/hgl/math/Matrix.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/hgl/math/Matrix.h b/inc/hgl/math/Matrix.h index f8acb53..8e406e0 100644 --- a/inc/hgl/math/Matrix.h +++ b/inc/hgl/math/Matrix.h @@ -236,7 +236,7 @@ namespace hgl * 变换矩阵
* 便于分散管理平移、旋转、缩放等数值 */ - class TransformMatrix4f + class Transform { protected: @@ -335,7 +335,7 @@ namespace hgl public: - TransformMatrix4f() + Transform() { matrix=Identity4f; inverse_matrix=Identity4f; @@ -349,7 +349,7 @@ namespace hgl scale_vector=Vector3f(1,1,1); } - TransformMatrix4f(const Matrix4f &m) + Transform(const Matrix4f &m) { SetFromMatrix4f(m); } @@ -390,8 +390,8 @@ namespace hgl { return matrix*child; } - };//TransformMatrix4f + };//Transform - constexpr const size_t TransformMatrix4fLength=sizeof(TransformMatrix4f); + constexpr const size_t TransformMatrix4fLength=sizeof(Transform); }//namespace hgl #endif//HGL_ALGORITHM_MATH_VECTOR_MATRIX_INCLUDE