1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// src/lib.rs
//! Exact, non-constructive computational geometry over `f64` coordinates.
//! Provides the validated geometry types, exact DE-9IM topological
//! predicates, validation, and certified measurements, backed by adaptive
//! floating-point arithmetic from the `arithmetica` crate.
//!
//! # What this crate does, and what it does not
//!
//! Every public function does one of three things: it validates, it decides
//! a predicate exactly, or it returns a quantity whose sign is certified and
//! whose magnitude has a documented bound ([`ops::area`], [`ops::length`],
//! [`accum::Accum`]). No public function returns a coordinate that is not an
//! input coordinate.
//!
//! Algorithms that construct new coordinates (the planar arrangement,
//! rounding to `f64`, overlay, offset, centroid, tessellation) are built on
//! top of this crate and vouch their results with its primitives. The
//! [`exact`], [`accum`] and [`codec`] modules are the public surface they use.
//!
//! # Format neutrality
//!
//! This crate takes coordinates as `f64` values and returns geometric
//! results. It has no knowledge of GIS file formats, coordinate reference
//! systems, or geographic features.
/// Increments a counter of the `counters` module by one, or by `$n`, on the
/// calling thread.
///
/// Without the `unstable-counters` feature this expands to an empty block:
/// the argument is not evaluated and nothing is compiled. Crate-internal; the
/// counters are read through `counters::snapshot`.
pub use count;
/// Not API: outside semver, and may change or disappear in any release.
///
/// It exists only to hold this `compile_fail` doctest, which proves that
/// without the `unstable-counters` feature the counters do not exist: the
/// item is compiled only then, and the doctest must fail to compile because
/// `geometres::counters` cannot be found.
///
/// ```compile_fail,E0433
/// let _ = geometres::counters::snapshot();
/// ```
pub use GeometryError;
pub use ;
pub use ;