public static RectangleD FromLTRB (double left, double top, double right, double bottom) { return new RectangleD (left, top, right - left + 1, bottom - top + 1); }
public static RectangleD Intersect(RectangleD a, RectangleD b) { return(RectangleD.FromLTRB( Math.Max(a.Left, b.Left), Math.Max(a.Top, b.Top), Math.Min(a.Right, b.Right), Math.Min(a.Bottom, b.Bottom))); }