Trait mgf::Intersects
[−]
[src]
pub trait Intersects<RHS> { fn intersection(&self, rhs: &RHS) -> Option<Intersection>; }
A type that can collide with a volumetric object and produce a single point of contact.
Intersects is implemented on volumetric object for linear objects such as Rays and Segments, although the intersection operation is commutative.
Required Methods
fn intersection(&self, rhs: &RHS) -> Option<Intersection>
Returns an Intersection if one exists.
Implementors
impl Intersects<Ray> for Plane
impl Intersects<Plane> for Ray
impl Intersects<AABB> for Ray
impl Intersects<Sphere> for Ray
impl Intersects<Capsule> for Ray
impl Intersects<Moving<Sphere>> for Ray
impl Intersects<Triangle> for Ray
impl Intersects<Rectangle> for Ray
impl<RHS: Intersects<Ray>> Intersects<RHS> for Segment
impl Intersects<Ray> for Triangle
impl Intersects<Ray> for Rectangle
impl Intersects<Ray> for AABB
impl Intersects<Segment> for AABB
impl Intersects<Ray> for Sphere
impl Intersects<Segment> for Sphere
impl Intersects<Ray> for Capsule
impl Intersects<Segment> for Capsule
impl Intersects<Ray> for Moving<Sphere>
impl Intersects<Segment> for Moving<Sphere>
impl<'a, S, RHS> Intersects<RHS> for StaticBody<'a, S> where
S: Intersects<RHS> + Shape,