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