Skip to main content
Version: Next

isPointInPolygon

Callable


  • Tests whether a point is inside a polygon using an even-odd ray cast.


    Parameters

    • point: Point2D

      Point to test.

    • polygon: Point2D[]

      Polygon vertices in path order.

    Returns boolean

    True when the point is inside the polygon.