PeachDrawing.Core
PeachDrawing.Core.Rect
Rect.Intersect Method
| Overloads | |
|---|---|
| Intersect(Rect) | Replaces this Rect structure with the intersection of itself and the specified Rect structure. |
| Intersect(Rect, Rect) | Returns a Rect structure that represents the intersection of two rectangles. If there is no intersection, and empty Rect is returned. |
Rect.Intersect(Rect) Method
Replaces this Rect structure with the intersection of itself and the specified Rect structure.
public void Intersect(PeachDrawing.Core.Rect rect);
Parameters
rect Rect
The rectangle to intersect.
Rect.Intersect(Rect, Rect) Method
Returns a Rect structure that represents the intersection of two rectangles. If there is no intersection, and empty Rect is returned.
public static PeachDrawing.Core.Rect Intersect(PeachDrawing.Core.Rect a, PeachDrawing.Core.Rect b);
Parameters
a Rect
A rectangle to intersect.
b Rect
A rectangle to intersect.
Returns
Rect
A third Rect structure the size of which represents the overlapped area of the two specified rectangles.