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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public int PointInPolygon(
	ref Vector2 point
)

Parameters

point  Vector2
The point to be tested.

Return Value

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