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 Planeimpl Intersects<Plane> for Rayimpl Intersects<AABB> for Rayimpl Intersects<Sphere> for Rayimpl Intersects<Capsule> for Rayimpl Intersects<Moving<Sphere>> for Rayimpl Intersects<Triangle> for Rayimpl Intersects<Rectangle> for Rayimpl<RHS: Intersects<Ray>> Intersects<RHS> for Segmentimpl Intersects<Ray> for Triangleimpl Intersects<Ray> for Rectangleimpl Intersects<Ray> for AABBimpl Intersects<Segment> for AABBimpl Intersects<Ray> for Sphereimpl Intersects<Segment> for Sphereimpl Intersects<Ray> for Capsuleimpl Intersects<Segment> for Capsuleimpl 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,