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

@@ -207,7 +207,7 @@ namespace FlaxEngine
/// <summary>
/// Gets a value indicting whether this instance is normalized.
/// </summary>
public bool IsNormalized => Mathr.IsOne(X * X + Y * Y);
public bool IsNormalized => Mathr.Abs((X * X + Y * Y) - 1.0f) < 1e-4f;
/// <summary>
/// Gets a value indicting whether this vector is zero