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

#98 in Math

Download history 1865/week @ 2024-01-03 1401/week @ 2024-01-10 2042/week @ 2024-01-17 2034/week @ 2024-01-24 1713/week @ 2024-01-31 632/week @ 2024-02-07 268/week @ 2024-02-14 413/week @ 2024-02-21 428/week @ 2024-02-28 410/week @ 2024-03-06 507/week @ 2024-03-13 408/week @ 2024-03-20 351/week @ 2024-03-27 347/week @ 2024-04-03 405/week @ 2024-04-10 356/week @ 2024-04-17

1,534 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