Returns a RectangleD structure that represents the intersection of two rectangles. If there is no intersection, and empty RectangleD is returned.

Namespace:  EGIS.ShapeFileLib
Assembly:  EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

Syntax

Visual Basic
Public Shared Function Intersect ( _
	a As RectangleD, _
	b As RectangleD _
) As RectangleD
C#
public static RectangleD Intersect(
	RectangleD a,
	RectangleD b
)
Visual C++
public:
static RectangleD Intersect(
	RectangleD a, 
	RectangleD b
)
JavaScript
EGIS.ShapeFileLib.RectangleD.intersect = function(a, b);

Parameters

a
Type: EGIS.ShapeFileLib..::..RectangleD
A rectangle to intersect.
b
Type: EGIS.ShapeFileLib..::..RectangleD
A rectangle to intersect.

Return Value

A third RectangleD structure the size of which represents the overlapped area of the two specified rectangles.

See Also