s2geometry-d
所属分类:工具库
开发工具:D
文件大小:0KB
下载次数:0
上传日期:2023-01-06 14:06:18
上 传 者:
sh-1993
说明: 将Google的S2几何库移植到D编程语言。,
(Port of Google s S2 Geometric Library to the D programming language.,)
文件列表:
.circleci/ (0, 2023-01-06)
.circleci/config.yml (307, 2023-01-06)
LICENSE (11358, 2023-01-06)
NOTICE (200, 2023-01-06)
docs/ (0, 2023-01-06)
docs/file_hashes.json (30282, 2023-01-06)
docs/images/ (0, 2023-01-06)
docs/images/ddox/ (0, 2023-01-06)
docs/images/ddox/alias.png (253, 2023-01-06)
docs/images/ddox/class.png (206, 2023-01-06)
docs/images/ddox/enum.png (211, 2023-01-06)
docs/images/ddox/enummember.png (258, 2023-01-06)
docs/images/ddox/function.png (244, 2023-01-06)
docs/images/ddox/inherited.png (281, 2023-01-06)
docs/images/ddox/interface.png (207, 2023-01-06)
docs/images/ddox/module.png (235, 2023-01-06)
docs/images/ddox/package.png (206, 2023-01-06)
docs/images/ddox/private.png (495, 2023-01-06)
docs/images/ddox/property.png (260, 2023-01-06)
docs/images/ddox/protected.png (358, 2023-01-06)
docs/images/ddox/struct.png (209, 2023-01-06)
docs/images/ddox/template.png (203, 2023-01-06)
docs/images/ddox/variable.png (277, 2023-01-06)
docs/index.html (6870, 2023-01-06)
docs/prettify/ (0, 2023-01-06)
docs/prettify/prettify.css (2076, 2023-01-06)
docs/s2/ (0, 2023-01-06)
docs/s2/base/ (0, 2023-01-06)
docs/s2/base/spinlock.html (5082, 2023-01-06)
docs/s2/base/spinlock/ (0, 2023-01-06)
docs/s2/base/spinlock/SpinLock.html (5907, 2023-01-06)
docs/s2/base/spinlock/SpinLock.lock.html (5195, 2023-01-06)
docs/s2/base/spinlock/SpinLock.unlock.html (5221, 2023-01-06)
docs/s2/r1interval.html (5234, 2023-01-06)
docs/s2/r1interval/ (0, 2023-01-06)
docs/s2/r1interval/R1Interval.addInterval.html (5277, 2023-01-06)
docs/s2/r1interval/R1Interval.addPoint.html (5101, 2023-01-06)
docs/s2/r1interval/R1Interval.approxEquals.html (5741, 2023-01-06)
... ...
# S2 Geometry Library
## Overview
This project is a migration of Google's S2 Geometric Library from C++ to the D programming language.
Converted from [commit cdf1a05](https://github.com/google/s2geometry/commit/cdf1a05acf462ad60e1110a354c86e0b606c8931) 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.
If you want to learn more about the library, start by reading the
[overview](http://s2geometry.io/about/overview) and [quick start
document](http://s2geometry.io/devguide/cpp/quickstart), then read the
introduction to the [basic types](http://s2geometry.io/devguide/basic_types).
S2 documentation can be found on [s2geometry.io](http://s2geometry.io).
## Requirements for End Users
* A [D compiler](https://dlang.org/).
* The [dub](https://code.dlang.org/download) build tool.
## Build and Install
You must [clone the git repository](https://help.github.com/articles/cloning-a-repository/).
```sh
cd [parent of directory where you want to put S2]
git clone https://github.com/vnayar/s2geometry-d.git
cd s2geometry-d
```
### Testing
The unittests may be run using the following command:
```sh
dub test
```
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.
```sh
dub test -- -s -d s2.s2predicates_test
```
### Building
From the appropriate directory depending on how you got the source, run the command:
```sh
dub
```
### Generating Documentation
Documentation is generated from the [ddoc](https://dlang.org/spec/ddoc.html) formatted comments in
the code. The best looking output comes from using the tool `ddox` and can be generated with the
command:
```sh
dub build --build=ddox
```
A local server can be run to allow you to preview the documentation using the command:
```sh
dub run --build=ddox
```
## Disclaimer
This is not an official Google product.
近期下载者:
相关文件:
收藏者: