diff --git a/Source/Engine/Core/Math/Vector2.cs b/Source/Engine/Core/Math/Vector2.cs index e953acfd6..568c51764 100644 --- a/Source/Engine/Core/Math/Vector2.cs +++ b/Source/Engine/Core/Math/Vector2.cs @@ -821,24 +821,6 @@ namespace FlaxEngine return value; } - /// - /// Returns the length of a vector. - /// - /// The vector to get the length from. - public static Real Length(Vector2 vector) - { - return (Real)Mathf.Sqrt(vector.X * vector.X + vector.Y * vector.Y); - } - - /// - /// Returns the length squared of a vector. - /// - /// The vector to get the length squared from. - public static Real LengthSquared(Vector2 vector) - { - return vector.X * vector.X + vector.Y * vector.Y; - } - /// /// Makes sure that Length of the output vector is always below max and above 0. /// diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index c4bcf6979..0ad557a32 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -963,24 +963,6 @@ namespace FlaxEngine return value; } - /// - /// Returns the length of a vector. - /// - /// The vector to get the length from. - public static Real Length(Vector3 vector) - { - return (Real)Mathf.Sqrt(vector.X * vector.X + vector.Y * vector.Y + vector.Z * vector.Z); - } - - /// - /// Returns the length squared of a vector. - /// - /// The vector to get the length squared from. - public static Real LengthSquared(Vector3 vector) - { - return vector.X * vector.X + vector.Y * vector.Y + vector.Z * vector.Z; - } - /// /// Makes sure that Length of the output vector is always below max and above 0. ///