Click or drag to resize

MathHelperPointInPolygon Method (IEnumerableEntityObject, Vector2)

Determines if the given point is inside the polygon defined by a list of entities.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public static bool PointInPolygon(
	IEnumerable<EntityObject> Entities,
	Vector2 Position
)

Parameters

Entities
Type: System.Collections.GenericIEnumerableEntityObject
The list of entities (lines, arcs, lightweight polylines, polylines) the define the polygon.
Position
Type: DXFReaderNETVector2
The given point.

Return Value

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