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)))); }
public static double GetAngleBetweenPoints(Settings.Point a, Settings.Point b) { return(Math.Atan2(b.Y - a.Y, b.X - a.X)); }
public static Vector2 AsVector2(this Settings.Point point) => new Vector2(point.X, point.Y);