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

#113 in Math

Download history 1646/week @ 2024-11-16 1029/week @ 2024-11-23 1509/week @ 2024-11-30 1742/week @ 2024-12-07 1770/week @ 2024-12-14 658/week @ 2024-12-21 2138/week @ 2024-12-28 4133/week @ 2025-01-04 3783/week @ 2025-01-11 3344/week @ 2025-01-18 1501/week @ 2025-01-25 2127/week @ 2025-02-01 4272/week @ 2025-02-08 1406/week @ 2025-02-15 1263/week @ 2025-02-22 2511/week @ 2025-03-01

10,338 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.5MB
~55K SLoC