Trait ncollide::query::RayCast [] [src]

pub trait RayCast<P, M> where
    P: Point
{ fn toi_and_normal_with_ray(
        &self,
        m: &M,
        ray: &Ray<P>,
        solid: bool
    ) -> Option<RayIntersection<<P as Point>::Vector>>; fn toi_with_ray(
        &self,
        m: &M,
        ray: &Ray<P>,
        solid: bool
    ) -> Option<<P as EuclideanSpace>::Real> { ... }
fn toi_and_normal_and_uv_with_ray(
        &self,
        m: &M,
        ray: &Ray<P>,
        solid: bool
    ) -> Option<RayIntersection<<P as Point>::Vector>> { ... }
fn intersects_ray(&self, m: &M, ray: &Ray<P>) -> bool { ... } }

Traits of objects which can be transformed and tested for intersection with a ray.

Required Methods

Computes the time of impact, and normal between this transformed shape and a ray.

Provided Methods

Computes the time of impact between this transform shape and a ray.

Computes time of impact, normal, and texture coordinates (uv) between this transformed shape and a ray.

Tests whether a ray intersects this transformed shape.

Implementors