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));
		}
		public void Intersect (RectangleD r)
		{
			var new_r = RectangleD.Intersect (this, r);

			X = new_r.X;
			Y = new_r.Y;
			Width = new_r.Width;
			Height = new_r.Height;
		}
Esempio n. 3
0
 public static Cairo.Rectangle ToCairoRectangle(this RectangleD r)
 {
     return(new Cairo.Rectangle(r.X, r.Y, r.Width, r.Height));
 }