Google's S2 Geometric Library implemented in D.
To use this package, run the following command in your project's root directory:
S2 Geometry Library
This project is a migration of Google's S2 Geometric Library from C++ to the D programming language.
Converted from commit cdf1a05 on February 2nd 2018.
The S2 Geometric Library is a package for manipulating geometric shapes. Unlike many geometry libraries, S2 is primarily designed to work with spherical geometry, i.e., shapes drawn on a sphere rather than on a planar 2D map. This makes it especially suitable for working with geographic data.
S2 documentation can be found on s2geometry.io.
Requirements for End Users
Build and Install
You must clone the git repository.
cd [parent of directory where you want to put S2] git clone https://github.com/vnayar/s2geometry-d.git cd s2geometry-d
The unittests may be run using the following command:
To run a single test, use its name along with the parameters "-s" and "-d", to run in single-threaded mode and to enable debug output respectively.
dub test -- -s -d s2.s2predicates_test
From the appropriate directory depending on how you got the source:
This is not an official Google product.
- Registered by Vijay Nayar
- 0.2.2 released a month ago
- Copyright © 2018-2019, Vijay Nayar