Tests whether point is inside a polygon

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

Syntax

Visual Basic
Public Shared Function PointInPolygon ( _
	points As PointD(), _
	x As Double, _
	y As Double, _
	ignoreHoles As Boolean, _
	ByRef isHole As Boolean _
) As Boolean
C#
public static bool PointInPolygon(
	PointD[] points,
	double x,
	double y,
	bool ignoreHoles,
	ref bool isHole
)
Visual C++
public:
static bool PointInPolygon(
	array<PointD>^ points, 
	double x, 
	double y, 
	bool ignoreHoles, 
	bool% isHole
)
JavaScript
EGIS.ShapeFileLib.GeometryAlgorithms.pointInPolygon = function(points, x, y, ignoreHoles, isHole);

Parameters

points
Type: array<EGIS.ShapeFileLib..::..PointD>[]()[][]
x
Type: System..::..Double
y
Type: System..::..Double
ignoreHoles
Type: System..::..Boolean
isHole
Type: System..::..Boolean%

Return Value

See Also