Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
RectangleD..::.Intersect Method (RectangleD, RectangleD)
RectangleD Structure See Also Send Feedback

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 (Declaration)
    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
    )

#### 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

RectangleD Structure
Intersect Overload
EGIS.ShapeFileLib Namespace