public static bool operator ==(PointD point1, PointD point2) { return point1.X == point2.X && point1.Y == point2.Y; }