public static bool operator ==(idRectangle r1, idRectangle r2) { return ((r1.X == r2.X) && (r1.Y == r2.Y) && (r1.Width == r2.Width) && (r1.Height == r2.Height)); }