Remove Unit Direction method

This commit is contained in:
W2Wizard
2021-04-20 18:21:27 +02:00
parent 4e01d110a1
commit 7cfcacf0cd
2 changed files with 0 additions and 21 deletions

View File

@@ -1245,17 +1245,6 @@ namespace FlaxEngine
return new Vector3(Math.Abs(v.X), Math.Abs(v.Y), Math.Abs(v.Z));
}
/// <summary>
/// Given two points, will return the unit direction.
/// </summary>
/// <param name="a">The start position.</param>
/// <param name="b">The target position.</param>
/// <returns>The unit direction from a to b.</returns>
public static Vector3 UnitDirection(Vector3 a, Vector3 b)
{
return (b - a).Normalized;
}
/// <summary>
/// Projects a vector onto another vector.
/// </summary>