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
)
Public Shared Function PointInPolygon (
Polygon As Vector2(),
Position As Vector2
) As Boolean
public:
static bool PointInPolygon(
array<Vector2>^ Polygon,
Vector2 Position
)
static member PointInPolygon :
Polygon : Vector2[] *
Position : Vector2 -> bool
STATIC METHOD PointInPolygon(
Polygon AS Vector2[],
Position AS Vector2
) AS LOGIC
Parameters
- Polygon
- Type: DXFReaderNETVector2
The vertices of polygon. - Position
- Type: DXFReaderNETVector2
The given point.
Return Value
Type:
Booleantrue if the point is inside the polygon; otherwise, false.
See Also