Use larger epsilon in Vector IsNormalized checks

This commit is contained in:
2024-08-04 20:15:12 +03:00
parent d6e99071aa
commit 387e8d1dd9
13 changed files with 13 additions and 13 deletions

View File

@@ -107,7 +107,7 @@ public:
/// </summary>
bool IsNormalized() const
{
return Math::IsOne(X * X + Y * Y + Z * Z + W * W);
return Math::Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-4f;
}
/// <summary>