Click or drag to resize

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
)

Parameters

Vertexes
Type: System.Collections.GenericListVector2
The vertexes of the polygon.
Position
Type: DXFReaderNETVector2
The point position.

Return Value

Type: Boolean
True if the point is inside the poligon.
See Also