@squawk
    Preparing search index...

    Function pointInBoundingBox

    • Tests whether a point falls within an axis-aligned bounding box. Intended as a fast rejection pre-filter before the more expensive pointInPolygon test.

      Parameters

      • lon: number

        Longitude of the test point in decimal degrees.

      • lat: number

        Latitude of the test point in decimal degrees.

      • box: polygon.BoundingBox

        Bounding box to test against.

      Returns boolean

      True if the point is inside or on the edge of the bounding box.