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

#119 in Math

Download history 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 521/week @ 2024-04-17 715/week @ 2024-04-24 528/week @ 2024-05-01 409/week @ 2024-05-08 393/week @ 2024-05-15 450/week @ 2024-05-22 444/week @ 2024-05-29 436/week @ 2024-06-05 412/week @ 2024-06-12 417/week @ 2024-06-19 343/week @ 2024-06-26

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