renamed to Transform from TransformMatrix4f

This commit is contained in:
2024-07-29 13:18:48 +08:00
parent 9567616ee4
commit 7feefc65c9

View File

@@ -236,7 +236,7 @@ namespace hgl
* 变换矩阵<Br> * 变换矩阵<Br>
* 便于分散管理平移、旋转、缩放等数值 * 便于分散管理平移、旋转、缩放等数值
*/ */
class TransformMatrix4f class Transform
{ {
protected: protected:
@@ -335,7 +335,7 @@ namespace hgl
public: public:
TransformMatrix4f() Transform()
{ {
matrix=Identity4f; matrix=Identity4f;
inverse_matrix=Identity4f; inverse_matrix=Identity4f;
@@ -349,7 +349,7 @@ namespace hgl
scale_vector=Vector3f(1,1,1); scale_vector=Vector3f(1,1,1);
} }
TransformMatrix4f(const Matrix4f &m) Transform(const Matrix4f &m)
{ {
SetFromMatrix4f(m); SetFromMatrix4f(m);
} }
@@ -390,8 +390,8 @@ namespace hgl
{ {
return matrix*child; return matrix*child;
} }
};//TransformMatrix4f };//Transform
constexpr const size_t TransformMatrix4fLength=sizeof(TransformMatrix4f); constexpr const size_t TransformMatrix4fLength=sizeof(Transform);
}//namespace hgl }//namespace hgl
#endif//HGL_ALGORITHM_MATH_VECTOR_MATRIX_INCLUDE #endif//HGL_ALGORITHM_MATH_VECTOR_MATRIX_INCLUDE