diff --git a/Engine/Source/Runtime/Core/public/Math/Vector4.hpp b/Engine/Source/Runtime/Core/public/Math/Vector4.hpp index ef9c018..8b2e82f 100644 --- a/Engine/Source/Runtime/Core/public/Math/Vector4.hpp +++ b/Engine/Source/Runtime/Core/public/Math/Vector4.hpp @@ -697,7 +697,7 @@ namespace Phanes::Core::Math TVector4 unitVec; unitVec = (magnitude > P_FLT_INAC) ? v1 / magnitude : PZeroVector4(T, false); - Clamp(magnitude, min, max); + magnitude = Clamp(magnitude, min, max); return unitVec * magnitude; } @@ -888,7 +888,7 @@ namespace Phanes::Core::Math /// Threshold to vector magnitude of 1.0 /// True if vector is normalized, false if not. template - FORCEINLINE TVector4 IsNormalized(const TVector4& v1, T threshold = P_FLT_INAC) + FORCEINLINE bool IsNormalized(const TVector4& v1, T threshold = P_FLT_INAC) { return (SqrMagnitude(v1) - (T)1.0) < threshold; } @@ -902,7 +902,7 @@ namespace Phanes::Core::Math /// Allowed T inaccuracy from one (e.g. 0.98f) /// True if parallel, false if not. template - inline bool IsParallel(const TVector4& v1, const TVector4& v2, T threshold = 1.0f - P_FLT_INAC) + FORCEINLINE bool IsParallel(const TVector4& v1, const TVector4& v2, T threshold = 1.0f - P_FLT_INAC) { return (abs(DotP(v1, v2)) > threshold); } @@ -916,7 +916,7 @@ namespace Phanes::Core::Math /// Allowed T inaccuracy from one (e.g. 0.98f) /// True if coincident, false if not. template - inline bool IsCoincident(const TVector4& v1, const TVector4& v2, T threshold = 1.0f - P_FLT_INAC) + FORCEINLINE bool IsCoincident(const TVector4& v1, const TVector4& v2, T threshold = 1.0f - P_FLT_INAC) { return (DotP(v1, v2) > threshold); }