@openhps/geospatial
    Preparing search index...

    Function pointInPolygon

    • Tests whether a point lies inside a polygon, counting the boundary as inside.

      Parameters

      • point: Point2

        The point

      • ring: readonly Point2[]

        The polygon ring

      • Optionaltolerance: number = 0

        Boundary tolerance in metres

      Returns boolean

      true when the point is inside or on the boundary