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

@@ -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)