Adjust epsilon in IsNormalized checks to be less strict

This commit is contained in:
2024-10-04 21:19:21 +03:00
parent a4474416ac
commit de67d1bf73
13 changed files with 13 additions and 13 deletions

View File

@@ -256,7 +256,7 @@ namespace FlaxEngine
/// <summary>
/// Gets a value indicting whether this instance is normalized.
/// </summary>
public bool IsNormalized => Mathr.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-4f;
public bool IsNormalized => Mathr.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-3f;
/// <summary>
/// Gets the normalized vector. Returned vector has length equal 1.