jagua_rs/geometry/geo_enums.rs
use crate::fsize;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum GeoPosition {
Exterior,
Interior,
}
#[derive(Debug, PartialEq)]
/// Possible relations between two geometric entities A and B.
/// A is `GeoRelation` to B
pub enum GeoRelation {
/// A ∩ B ≠ ∅ and neither A ⊆ B nor B ⊆ A
Intersecting,
/// A ⊆ B
Enclosed,
/// B ⊆ A
Surrounding,
/// A ∩ B = ∅
Disjoint,
}
#[derive(Clone, Debug, PartialEq)]
pub enum AllowedRotation {
/// No rotation is allowed
None,
/// Any rotation is allowed
Continuous,
/// Only a limited set of rotations is allowed
Discrete(Vec<fsize>),
}