Revert last feature since feature already exists

This commit is contained in:
Andrej Stojkovikj
2023-09-19 19:29:59 +02:00
parent 8930c7ba56
commit cb460af264
2 changed files with 0 additions and 36 deletions

View File

@@ -821,24 +821,6 @@ namespace FlaxEngine
return value;
}
/// <summary>
/// Returns the length of a vector.
/// </summary>
/// <param name="vector">The vector to get the length from.</param>
public static Real Length(Vector2 vector)
{
return (Real)Mathf.Sqrt(vector.X * vector.X + vector.Y * vector.Y);
}
/// <summary>
/// Returns the length squared of a vector.
/// </summary>
/// <param name="vector">The vector to get the length squared from.</param>
public static Real LengthSquared(Vector2 vector)
{
return vector.X * vector.X + vector.Y * vector.Y;
}
/// <summary>
/// Makes sure that Length of the output vector is always below max and above 0.
/// </summary>

View File

@@ -963,24 +963,6 @@ namespace FlaxEngine
return value;
}
/// <summary>
/// Returns the length of a vector.
/// </summary>
/// <param name="vector">The vector to get the length from.</param>
public static Real Length(Vector3 vector)
{
return (Real)Mathf.Sqrt(vector.X * vector.X + vector.Y * vector.Y + vector.Z * vector.Z);
}
/// <summary>
/// Returns the length squared of a vector.
/// </summary>
/// <param name="vector">The vector to get the length squared from.</param>
public static Real LengthSquared(Vector3 vector)
{
return vector.X * vector.X + vector.Y * vector.Y + vector.Z * vector.Z;
}
/// <summary>
/// Makes sure that Length of the output vector is always below max and above 0.
/// </summary>