wasm-spatial-core
    Preparing search index...

    Function computeBounds

    • Compute the axis-aligned bounding box of a set of 2D coordinates.

      Input: flat Float64Array of [lng0, lat0, lng1, lat1, ...]. Output: Float64Array of [minLng, minLat, maxLng, maxLat].

      Uses a manual 4-wide f64 comparison pattern for efficient vectorization hints to the LLVM backend (effectively SIMD-style without explicit SIMD intrinsics).

      Parameters

      • coords: Float64Array

      Returns Float64Array