Click or drag to resize

MathHelperPointInPolygon Method (Vector2, Vector2)

Determines if the given point is inside the polygon.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public static bool PointInPolygon(
	Vector2[] Polygon,
	Vector2 Position
)

Parameters

Polygon
Type: DXFReaderNETVector2
The vertices of polygon.
Position
Type: DXFReaderNETVector2
The given point.

Return Value

Type: Boolean
true if the point is inside the polygon; otherwise, false.
See Also