VerticesPointInPolygon Method |
Winding number test for a point in a polygon.
Namespace: Internal.tainicom.Aether.Physics2D.CommonAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic 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