mirror of
https://github.com/AxioDL/zeus.git
synced 2025-12-10 22:17:44 +00:00
Fix some compilation warnings
This commit is contained in:
@@ -275,6 +275,15 @@ CRelAngle CQuaternion::angleFrom(const zeus::CQuaternion& other) {
|
||||
return std::acos(zeus::clamp(-1.f, dot(other), 1.f));
|
||||
}
|
||||
|
||||
static float normalize_angle(float angle) {
|
||||
if (angle > M_PIF)
|
||||
angle -= 2.f * M_PIF;
|
||||
else if (angle < -M_PIF)
|
||||
angle += 2.f * M_PIF;
|
||||
|
||||
return angle;
|
||||
}
|
||||
|
||||
CQuaternion CQuaternion::lookAt(const CUnitVector3f& source, const CUnitVector3f& dest, const CRelAngle& maxAng) {
|
||||
CQuaternion q;
|
||||
zeus::CVector3f destNoZ = dest;
|
||||
|
||||
Reference in New Issue
Block a user