Remove Unit Direction method
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user