Utility.PointInPolygon (Point2D, IList<Polygon2D>) Method

Tests if a 2D point is inside to a region composed by multiple 2D polygons (clockwise/anticlockwise orientation rule).
Public Shared Function PointInPolygon( _ 
ByVal testPoint As Point2D, _ 
ByVal polygonList As IList(Of Polygon2D) _ 
) As Boolean
This language is not supported or no code example is available.
public static bool PointInPolygon( 
Point2D testPoint
IList<Polygon2D> polygonList 
)
This language is not supported or no code example is available.

Parameters

testPoint
Point2D

The test 2D point

polygonList
IList<Polygon2D>

The region as a collection of properly oriented 2D polygons

Return Value

bool

True if the point is inside the outer loop and outside all the inners loop, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition