예제 #1
0
 internal static double DistanceBetweenPoints(Settings.Point a, Settings.Point b)
 {
     return(Math.Abs(Vector2.Distance(new Vector2(a.X, a.Y), new Vector2(b.X, b.Y))));
 }
예제 #2
0
 public static double GetAngleBetweenPoints(Settings.Point a, Settings.Point b)
 {
     return(Math.Atan2(b.Y - a.Y, b.X - a.X));
 }
예제 #3
0
 public static Vector2 AsVector2(this Settings.Point point) => new Vector2(point.X, point.Y);