@squawk
    Preparing search index...

    Function boundingBox

    • Computes the axis-aligned bounding box of a polygon exterior ring.

      An empty ring returns a degenerate "empty" bounding box with minLon = minLat = Infinity and maxLon = maxLat = -Infinity. Combined with pointInBoundingBox, such a box rejects every query point, which is the defensively safe behavior for an uninitialized or invalid ring.

      Parameters

      • ring: number[][]

        Polygon exterior ring as [lon, lat] coordinate pairs.

      Returns polygon.BoundingBox

      The minimum bounding box enclosing the ring.