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

#97 in Math

Download history 1316/week @ 2024-01-01 1681/week @ 2024-01-08 1872/week @ 2024-01-15 2052/week @ 2024-01-22 1748/week @ 2024-01-29 1181/week @ 2024-02-05 248/week @ 2024-02-12 377/week @ 2024-02-19 435/week @ 2024-02-26 322/week @ 2024-03-04 539/week @ 2024-03-11 444/week @ 2024-03-18 341/week @ 2024-03-25 396/week @ 2024-04-01 337/week @ 2024-04-08 455/week @ 2024-04-15

1,544 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.7–2.5MB
~57K SLoC