Click or drag to resize

VerticesPointInPolygon Method

Winding number test for a point in a polygon.

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public int PointInPolygon(
	ref Vector2 point
)

Parameters

point
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The point to be tested.

Return Value

Type: Int32
-1 if the winding number is zero and the point is outside the polygon, 1 if the point is inside the polygon, and 0 if the point is on the polygons edge.
See Also