Use larger epsilon in Vector IsNormalized checks
This commit is contained in:
@@ -228,7 +228,7 @@ namespace FlaxEngine
|
||||
/// <summary>
|
||||
/// Gets a value indicting whether this instance is normalized.
|
||||
/// </summary>
|
||||
public bool IsNormalized => Mathf.IsOne(X * X + Y * Y + Z * Z);
|
||||
public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-4f;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the normalized vector. Returned vector has length equal 1.
|
||||
|
||||
Reference in New Issue
Block a user