/// <summary>
 /// Calculate the Chebyshev distance between two <see cref="Vector2"/> instances.
 /// </summary>
 /// <param name="a">The first instance.</param>
 /// <param name="b">The second instance.</param>
 /// <returns>The Manhattan Distance between two instances.</returns>
 public static float GetChebyshevDistance(this Vector2 a, Vector2 b)
 {
     return(DistanceHelper.GetChebyshevDistance(a.X, a.Y, b.X, b.Y));
 }
Exemple #2
0
 /// <summary>
 /// Calculate the Chebyshev distance between two <see cref="PointF"/> instances.
 /// </summary>
 /// <param name="a">The first instance.</param>
 /// <param name="b">The second instance.</param>
 /// <returns>The Manhattan Distance between two instances.</returns>
 public static float GetChebyshevDistance(this PointF a, PointF b)
 {
     return(DistanceHelper.GetChebyshevDistance(a.X, a.Y, b.X, b.Y));
 }