13 releases

0.0.13 Oct 2, 2024
0.0.12 Jan 15, 2023
0.0.11 Dec 26, 2022
0.0.10 Feb 10, 2020
0.0.6 Jun 17, 2017

#102 in Math

Download history 1445/week @ 2024-10-13 1405/week @ 2024-10-20 1290/week @ 2024-10-27 2326/week @ 2024-11-03 972/week @ 2024-11-10 1629/week @ 2024-11-17 1039/week @ 2024-11-24 1534/week @ 2024-12-01 1857/week @ 2024-12-08 1629/week @ 2024-12-15 712/week @ 2024-12-22 2221/week @ 2024-12-29 4022/week @ 2025-01-05 3772/week @ 2025-01-12 3381/week @ 2025-01-19 1404/week @ 2025-01-26

12,753 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

655KB
12K SLoC

rust-s2

Rust port of Google S2 geometry library.

Build Status docs

Status of the Rust Library

This library is principally a port of the Golang S2 library, adapting to Rust idioms where it makes sense. We detail the progress of this port below relative to that Go library.

ℝ¹ - One-dimensional Cartesian coordinates

Full parity with Go.

ℝ² - Two-dimensional Cartesian coordinates

Full parity with Go.

ℝ³ - Three-dimensional Cartesian coordinates

Full parity with Go.

- Circular Geometry

Full parity with Go.

- Spherical Geometry

complete

  • Cell, CellID, LatLng, Metric, Point, Region, stuv

in progress

  • CellUnion, edgeutil, predicates, Rect

pending

  • loop, paddedcell, polygon, polyline, shapeindex

Dependencies

~1.7–2.6MB
~56K SLoC