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>
|
||||
|
||||
@@ -902,16 +902,6 @@ public:
|
||||
/// <returns>The triangle area.</returns>
|
||||
static float TriangleArea(const Vector3& v0, const Vector3& v1, const Vector3& v2);
|
||||
|
||||
/// <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>
|
||||
static Vector3 UnitDirection(const Vector3& a, const Vector3& b)
|
||||
{
|
||||
return (b - a).GetNormalized();
|
||||
}
|
||||
};
|
||||
|
||||
inline Vector3 operator+(float a, const Vector3& b)
|
||||
|
||||
Reference in New Issue
Block a user