From b1a54d2967d8bcfbf89331cf3ba99abc4989b9e6 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 29 Oct 2024 23:34:10 +0100 Subject: [PATCH] Missing change in 072f7c7e45757f011ebd6936e4b2e01d9833abfe --- Source/Engine/Core/Math/Vector3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Engine/Core/Math/Vector3.cpp b/Source/Engine/Core/Math/Vector3.cpp index d9e00f0c0..791137f8c 100644 --- a/Source/Engine/Core/Math/Vector3.cpp +++ b/Source/Engine/Core/Math/Vector3.cpp @@ -320,7 +320,7 @@ float Float3::Angle(const Float3& from, const Float3& to) { const float dot = Math::Clamp(Dot(Normalize(from), Normalize(to)), -1.0f, 1.0f); if (Math::Abs(dot) > 1.0f - ZeroTolerance) - return dot > 0.0f ? 0.0f : PI; + return dot > 0.0f ? 0.0f : 180.0f; return Math::Acos(dot) * RadiansToDegrees; } @@ -648,7 +648,7 @@ double Double3::Angle(const Double3& from, const Double3& to) { const double dot = Math::Clamp(Dot(Normalize(from), Normalize(to)), -1.0, 1.0); if (Math::Abs(dot) > 1.0 - ZeroTolerance) - return dot > 0.0 ? 0.0 : PI; + return dot > 0.0f ? 0.0f : 180.0f; return Math::Acos(dot) * RadiansToDegrees; }