cesium-spatial
    Preparing search index...

    Function toS2Rect

    • Converts a Cesium rectangle into an S2 rectangle.

      S2's longitude interval represents wrapping natively, so a Cesium rectangle that crosses the antimeridian (west > east) becomes an inverted interval and needs none of the splitting H3 requires.

      Parameters

      Returns Rect