[−][src]Trait collision::Bound
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
Implementors
impl<A> Bound for A where
A: Aabb,
A::Point: EuclideanSpace,
[src]
A: Aabb,
A::Point: EuclideanSpace,
type Point = A::Point
fn min_extent(&self) -> A::Point
[src]
fn max_extent(&self) -> A::Point
[src]
fn with_margin(&self, add: <A::Point as EuclideanSpace>::Diff) -> Self
[src]
fn transform_volume<T>(&self, transform: &T) -> Self where
T: Transform<Self::Point>,
[src]
T: Transform<Self::Point>,
fn empty() -> Self
[src]
impl<S> Bound for Sphere<S> where
S: BaseFloat,
[src]
S: BaseFloat,
type Point = Point3<S>
fn min_extent(&self) -> Point3<S>
[src]
fn max_extent(&self) -> Point3<S>
[src]
fn with_margin(&self, add: Vector3<S>) -> Self
[src]
fn transform_volume<T>(&self, transform: &T) -> Self where
T: Transform<Self::Point>,
[src]
T: Transform<Self::Point>,