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
)
Public Shared Function PointInPolygon (
Entities As IEnumerable(Of EntityObject),
Position As Vector2
) As Boolean
public:
static bool PointInPolygon(
IEnumerable<EntityObject^>^ Entities,
Vector2 Position
)
static member PointInPolygon :
Entities : IEnumerable<EntityObject> *
Position : Vector2 -> bool
STATIC METHOD PointInPolygon(
Entities AS IEnumerable<EntityObject>,
Position AS Vector2
) AS LOGIC
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:
Booleantrue if the point is inside the polygon; otherwise, false.
See Also