12 releases

0.0.12 Jan 15, 2023
0.0.11 Dec 26, 2022
0.0.10 Feb 10, 2020
0.0.9 Jul 12, 2019
0.0.1 May 31, 2017

#87 in Math

Download history 1342/week @ 2023-12-10 803/week @ 2023-12-17 224/week @ 2023-12-24 1293/week @ 2023-12-31 1675/week @ 2024-01-07 1874/week @ 2024-01-14 2013/week @ 2024-01-21 1806/week @ 2024-01-28 1173/week @ 2024-02-04 252/week @ 2024-02-11 384/week @ 2024-02-18 431/week @ 2024-02-25 304/week @ 2024-03-03 545/week @ 2024-03-10 450/week @ 2024-03-17 341/week @ 2024-03-24

1,676 downloads per month
Used in 2 crates

Apache-2.0

590KB
10K 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.8–2.6MB
~58K SLoC