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

#117 in Math

Download history 459/week @ 2024-07-20 370/week @ 2024-07-27 337/week @ 2024-08-03 395/week @ 2024-08-10 338/week @ 2024-08-17 394/week @ 2024-08-24 294/week @ 2024-08-31 406/week @ 2024-09-07 351/week @ 2024-09-14 432/week @ 2024-09-21 494/week @ 2024-09-28 513/week @ 2024-10-05 1364/week @ 2024-10-12 1486/week @ 2024-10-19 1239/week @ 2024-10-26 2355/week @ 2024-11-02

6,531 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.8–2.6MB
~57K SLoC