public static double Cross(Vector2D a, Vector2D b) { return a.X * b.Y - b.X * a.Y; }
public static double Dot(Vector2D a, Vector2D b) { return a.X * b.X + a.Y * b.Y; }