jagua_rs/geometry/geo_enums.rs
1#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
2pub enum GeoPosition {
3 Exterior,
4 Interior,
5}
6
7#[derive(Debug, PartialEq)]
8/// Possible relations between two geometric entities A and B.
9/// A is `GeoRelation` to B
10pub enum GeoRelation {
11 /// A ∩ B ≠ ∅ and neither A ⊆ B nor B ⊆ A
12 Intersecting,
13 /// A ⊆ B
14 Enclosed,
15 /// B ⊆ A
16 Surrounding,
17 /// A ∩ B = ∅
18 Disjoint,
19}
20
21#[derive(Clone, Debug, PartialEq)]
22pub enum RotationRange {
23 /// No rotation allowed
24 None,
25 /// A continuous range of rotations
26 Continuous,
27 /// A discrete set of rotations
28 Discrete(Vec<f32>),
29}