Skip to main content

conspire/geometry/bbox/
mod.rs

1#[cfg(test)]
2pub mod test;
3
4mod base;
5mod from;
6mod unite;
7
8use crate::geometry::Coordinate;
9
10#[derive(Clone, Debug, PartialEq)]
11pub struct BoundingBox<const D: usize> {
12    minimum: Coordinate<D>,
13    maximum: Coordinate<D>,
14}
15
16pub type BoundingBoxes<const D: usize> = Vec<BoundingBox<D>>;
17
18pub trait Unite<T> {
19    type Output;
20    fn unite(self, other: T) -> Self::Output;
21}