returns true if polygon1 "touches" polygon 2

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

Syntax

Visual Basic
Public Shared Function PolygonTouchesPolygon ( _
	polygonPoints1 As PointD(), _
	polygonPoints1Count As Integer, _
	polygonPoints2 As PointD(), _
	polygonPoints2Count As Integer _
) As Boolean
C#
public static bool PolygonTouchesPolygon(
	PointD[] polygonPoints1,
	int polygonPoints1Count,
	PointD[] polygonPoints2,
	int polygonPoints2Count
)
Visual C++
public:
static bool PolygonTouchesPolygon(
	array<PointD>^ polygonPoints1, 
	int polygonPoints1Count, 
	array<PointD>^ polygonPoints2, 
	int polygonPoints2Count
)
JavaScript
EGIS.ShapeFileLib.GeometryAlgorithms.polygonTouchesPolygon = function(polygonPoints1, polygonPoints1Count, polygonPoints2, polygonPoints2Count);

Parameters

polygonPoints1
Type: array<EGIS.ShapeFileLib..::..PointD>[]()[][]
polygonPoints1Count
Type: System..::..Int32
polygonPoints2
Type: array<EGIS.ShapeFileLib..::..PointD>[]()[][]
polygonPoints2Count
Type: System..::..Int32

Return Value

This method can be used to find neighbouring polygons

See Also