Method Intersect
Intersect(RectangleF, RectangleF)
Returns a RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty RectangleF is returned.
public static RectangleF Intersect(RectangleF a, RectangleF b)
Parameters
a
RectangleFA first rectangle to intersect.
b
RectangleFA second rectangle to intersect.
Returns
- RectangleF
A third RectangleF structure the size of which represents the overlapped area of the two specified rectangles.
Intersect(RectangleF)
Replaces this RectangleF structure with the intersection of itself and the specified RectangleF structure.
public void Intersect(RectangleF rect)
Parameters
rect
RectangleFThe rectangle to intersect.