From e5c63827ab419ab9681df12494d9bdd09c29d0e4 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 7 Jul 2025 00:28:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=94=B9=E5=90=8D=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E9=98=B2=E6=AD=A2=E9=94=99=E8=AF=AF=E7=90=86=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/math/Matrix.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/inc/hgl/math/Matrix.h b/inc/hgl/math/Matrix.h index 4bebb65..178ca06 100644 --- a/inc/hgl/math/Matrix.h +++ b/inc/hgl/math/Matrix.h @@ -147,29 +147,29 @@ namespace hgl return glm::scale(Matrix4f(1.0f),Vector3f(s,s,s)); } - inline Matrix4f rotate(float angle,const Vector3f &axis) + inline Matrix4f rotate(float rad,const Vector3f &axis) { - return glm::rotate(Matrix4f(1.0f),angle,axis); + return glm::rotate(Matrix4f(1.0f),rad,axis); } - inline Matrix4f rotate(float angle,float x,float y,float z) + inline Matrix4f rotate(float rad,float x,float y,float z) { - return glm::rotate(Matrix4f(1.0f),angle,Vector3f(x,y,z)); + return glm::rotate(Matrix4f(1.0f),rad,Vector3f(x,y,z)); } - inline Matrix4f rotate(float angle,float x,float y) + inline Matrix4f rotate(float rad,float x,float y) { - return rotate(angle,x,y,1.0f); + return rotate(rad,x,y,1.0f); } - inline Matrix4f rotate(float angle,const Vector4f &axis) + inline Matrix4f rotate(float rad,const Vector4f &axis) { - return rotate(angle,Vector3f(axis.x,axis.y,axis.z)); + return rotate(rad,Vector3f(axis.x,axis.y,axis.z)); } - inline Vector3f rotate(const Vector3f &v3f,float angle,const Vector3f &axis) + inline Vector3f rotate(const Vector3f &v3f,float rad,const Vector3f &axis) { - Vector4f result = rotate(angle, axis)*Vector4f(v3f, 1.0f); + Vector4f result = rotate(rad, axis)*Vector4f(v3f, 1.0f); return Vector3f(result.x,result.y,result.z); }