cesium-spatial
    Preparing search index...
    • Rewrites a ring's longitudes so consecutive vertices never jump more than 180 degrees, pushing values past +/-180 where needed.

      Cells that straddle the antimeridian otherwise produce rings whose longitudes flip between +179 and -179, which makes any naive min/max bounding box span the entire globe. Cartesian conversion is unaffected by the unwrapping.

      Parameters

      • ring: number[]

      Returns number[]