From 73240ef898ac7475727748a6340236476ced49bd Mon Sep 17 00:00:00 2001 From: peri4 Date: Thu, 15 Jul 2021 15:59:26 +0300 Subject: [PATCH] rename --- core/gltypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/gltypes.h b/core/gltypes.h index 57ec127..6ac9b00 100644 --- a/core/gltypes.h +++ b/core/gltypes.h @@ -290,7 +290,7 @@ inline float cosABV(const QVector3D & v0, const QVector3D & v1) { return (QVector3D::dotProduct(v0, v1)) / l; } inline void normalizeAngleRad(float & a) {while (a < 0.) a += M_2PI; while (a >= M_2PI) a -= M_2PI;} -inline void normalizeAngleDeg(float & a) {while (a < 0.) a += 360. ; while (a >= 360. ) a -= 360. ;} +inline void normalizeAngleDeg360(float & a) {while (a < 0.) a += 360. ; while (a >= 360. ) a -= 360. ;} inline QVector3D projection(const QVector3D & v, const QVector3D & to) {return to.normalized() * v.length() * cosABV(v, to);} QVector3D orthToVector(const QVector3D & v, const float & scale = 1.); QVector3D rotateVector(const QVector3D & v, const QVector3D & a);