MathHelperPointInPolygon Method (ListVector2, Vector2)
|
Checks if a point is contained in a list of vectors representing a polygon.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public static bool PointInPolygon(
List<Vector2> Vertexes,
Vector2 Position
)
Public Shared Function PointInPolygon (
Vertexes As List(Of Vector2),
Position As Vector2
) As Boolean
public:
static bool PointInPolygon(
List<Vector2>^ Vertexes,
Vector2 Position
)
static member PointInPolygon :
Vertexes : List<Vector2> *
Position : Vector2 -> bool
STATIC METHOD PointInPolygon(
Vertexes AS List<Vector2>,
Position AS Vector2
) AS LOGIC
Parameters
- Vertexes
- Type: System.Collections.GenericListVector2
The vertexes of the polygon. - Position
- Type: DXFReaderNETVector2
The point position.
Return Value
Type:
BooleanTrue if the point is inside the poligon.
See Also