Exemple #1
0
 public static int DirectionOf(this Vec position, Vec target)
 {
     return(Globals.DefaultMetric == DistanceMetric.Chebyshev
                         ? position.EightWayDirectionOf(target)
                         : position.FourWayDirectionOf(target));
 }