Trait collision::Bound
[−]
[src]
pub trait Bound { type Point: EuclideanSpace; fn min_extent(&self) -> Self::Point; fn max_extent(&self) -> Self::Point; fn with_margin(&self, add: <Self::Point as EuclideanSpace>::Diff) -> Self; fn transform_volume<T>(&self, transform: &T) -> Self
where
T: Transform<Self::Point>; fn empty() -> Self; }
Bounding volume abstraction for use with algorithms
Associated Types
type Point: EuclideanSpace
Point type for the bounding volume (for dimensionality)
Required Methods
fn min_extent(&self) -> Self::Point
Minimum extents of the bounding volume
fn max_extent(&self) -> Self::Point
Maximum extents of the bounding volume
fn with_margin(&self, add: <Self::Point as EuclideanSpace>::Diff) -> Self
Create a new bounding volume extended by the given amount
fn transform_volume<T>(&self, transform: &T) -> Self where
T: Transform<Self::Point>,
T: Transform<Self::Point>,
Apply an arbitrary transform to the bounding volume
fn empty() -> Self
Create empty volume