Click or drag to resize

MathHelperPointInPolygon Method (EntityObject, Vector2)

Determines if the given point is inside the polygon defined by an entity.

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

Parameters

Entity
Type: DXFReaderNET.EntitiesEntityObject
The entity (lines, arcs, lightweight polylines, polylines, circles, etc.) the defines the polygon.
Position
Type: DXFReaderNETVector2
The given point.

Return Value

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