[][src]Trait collision::Bound

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)

Loading content...

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>, 

Apply an arbitrary transform to the bounding volume

fn empty() -> Self

Create empty volume

Loading content...

Implementors

impl<A> Bound for A where
    A: Aabb,
    A::Point: EuclideanSpace
[src]

type Point = A::Point

impl<S> Bound for Sphere<S> where
    S: BaseFloat
[src]

type Point = Point3<S>

Loading content...