Trait mgf::Intersects[][src]

pub trait Intersects<RHS>: Particle {
    fn intersection(&self, rhs: &RHS) -> Option<Intersection>;
}

A type that can collide with a volumetric object and produce a single point of contact.

Intersects for particle types implements collisions against volumetric and planar geometries. Intersects is not a commutative operator.

Required Methods

Returns an Intersection if one exists.

Implementors