diff --git a/Source/Engine/Core/Math/Double2.cs b/Source/Engine/Core/Math/Double2.cs index d3df12898..f3ee47add 100644 --- a/Source/Engine/Core/Math/Double2.cs +++ b/Source/Engine/Core/Math/Double2.cs @@ -179,7 +179,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathd.Abs((X * X + Y * Y) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathd.Abs((X * X + Y * Y) - 1.0f) < 1e-3f; /// /// Gets a value indicting whether this vector is zero diff --git a/Source/Engine/Core/Math/Double3.cs b/Source/Engine/Core/Math/Double3.cs index c84c9a935..cb595ca93 100644 --- a/Source/Engine/Core/Math/Double3.cs +++ b/Source/Engine/Core/Math/Double3.cs @@ -234,7 +234,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathd.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathd.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-3f; /// /// Gets the normalized vector. Returned vector has length equal 1. diff --git a/Source/Engine/Core/Math/Double4.cs b/Source/Engine/Core/Math/Double4.cs index 1e115c3ae..854660f8c 100644 --- a/Source/Engine/Core/Math/Double4.cs +++ b/Source/Engine/Core/Math/Double4.cs @@ -220,7 +220,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathd.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathd.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-3f; /// /// Gets a value indicting whether this vector is zero diff --git a/Source/Engine/Core/Math/Float2.cs b/Source/Engine/Core/Math/Float2.cs index 92247d865..4cfa747c8 100644 --- a/Source/Engine/Core/Math/Float2.cs +++ b/Source/Engine/Core/Math/Float2.cs @@ -184,7 +184,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathf.Abs((X * X + Y * Y) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathf.Abs((X * X + Y * Y) - 1.0f) < 1e-3f; /// /// Gets a value indicting whether this vector is zero diff --git a/Source/Engine/Core/Math/Float3.cs b/Source/Engine/Core/Math/Float3.cs index beb35d541..9d3a62247 100644 --- a/Source/Engine/Core/Math/Float3.cs +++ b/Source/Engine/Core/Math/Float3.cs @@ -228,7 +228,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-3f; /// /// Gets the normalized vector. Returned vector has length equal 1. diff --git a/Source/Engine/Core/Math/Float4.cs b/Source/Engine/Core/Math/Float4.cs index 7b9a81b84..d26d314ac 100644 --- a/Source/Engine/Core/Math/Float4.cs +++ b/Source/Engine/Core/Math/Float4.cs @@ -202,7 +202,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-3f; /// /// Gets a value indicting whether this vector is zero diff --git a/Source/Engine/Core/Math/Quaternion.cs b/Source/Engine/Core/Math/Quaternion.cs index f33470c60..6f5f06058 100644 --- a/Source/Engine/Core/Math/Quaternion.cs +++ b/Source/Engine/Core/Math/Quaternion.cs @@ -163,7 +163,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathf.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-3f; /// /// Gets the euler angle (pitch, yaw, roll) in degrees. diff --git a/Source/Engine/Core/Math/Quaternion.h b/Source/Engine/Core/Math/Quaternion.h index 1dbcda32d..628944864 100644 --- a/Source/Engine/Core/Math/Quaternion.h +++ b/Source/Engine/Core/Math/Quaternion.h @@ -113,7 +113,7 @@ public: /// bool IsNormalized() const { - return Math::Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-4f; + return Math::Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-3f; } /// diff --git a/Source/Engine/Core/Math/Vector2.cs b/Source/Engine/Core/Math/Vector2.cs index 4570ad2e9..e40bf03a8 100644 --- a/Source/Engine/Core/Math/Vector2.cs +++ b/Source/Engine/Core/Math/Vector2.cs @@ -207,7 +207,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathr.Abs((X * X + Y * Y) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathr.Abs((X * X + Y * Y) - 1.0f) < 1e-3f; /// /// Gets a value indicting whether this vector is zero diff --git a/Source/Engine/Core/Math/Vector2.h b/Source/Engine/Core/Math/Vector2.h index 0c91cbaac..63532600c 100644 --- a/Source/Engine/Core/Math/Vector2.h +++ b/Source/Engine/Core/Math/Vector2.h @@ -105,7 +105,7 @@ public: // Gets a value indicting whether this instance is normalized. bool IsNormalized() const { - return Math::Abs((X * X + Y * Y) - 1.0f) < 1e-4f; + return Math::Abs((X * X + Y * Y) - 1.0f) < 1e-3f; } // Gets a value indicting whether this vector is zero. diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index 5505c5053..fc1b7c564 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -256,7 +256,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - 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; /// /// Gets the normalized vector. Returned vector has length equal 1. diff --git a/Source/Engine/Core/Math/Vector3.h b/Source/Engine/Core/Math/Vector3.h index 67f8e7d44..02be4c39f 100644 --- a/Source/Engine/Core/Math/Vector3.h +++ b/Source/Engine/Core/Math/Vector3.h @@ -136,7 +136,7 @@ public: // Gets a value indicting whether this instance is normalized. bool IsNormalized() const { - return Math::Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-4f; + return Math::Abs((X * X + Y * Y + Z * Z) - 1.0f) < 1e-3f; } // Gets a value indicting whether this vector is zero. diff --git a/Source/Engine/Core/Math/Vector4.cs b/Source/Engine/Core/Math/Vector4.cs index e859938bf..52ccd7a21 100644 --- a/Source/Engine/Core/Math/Vector4.cs +++ b/Source/Engine/Core/Math/Vector4.cs @@ -258,7 +258,7 @@ namespace FlaxEngine /// /// Gets a value indicting whether this instance is normalized. /// - public bool IsNormalized => Mathr.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-4f; + public bool IsNormalized => Mathr.Abs((X * X + Y * Y + Z * Z + W * W) - 1.0f) < 1e-3f; /// /// Gets a value indicting whether this vector is zero