예제 #1
0
 /// <summary>
 /// Returns direction which bot should take to reach the desirable point
 /// </summary>
 public static Directions GetBotDirection(DiscretePoint bot, DiscretePoint obj)
 {
     return(GetBotDirection(bot.X, bot.Y, obj.X, obj.Y));
 }
예제 #2
0
 /// <summary>
 /// Returns distance between 2 points
 /// </summary>
 public static double Distance(DiscretePoint a, DiscretePoint b)
 {
     return(Distance(a.X, a.Y, b.X, b.Y));
 }