[][src]Trait parry3d::query::RayCast

pub trait RayCast {
    fn cast_local_ray_and_get_normal(
        &self,
        ray: &Ray,
        max_toi: Real,
        solid: bool
    ) -> Option<RayIntersection>; fn cast_local_ray(
        &self,
        ray: &Ray,
        max_toi: Real,
        solid: bool
    ) -> Option<Real> { ... }
fn intersects_local_ray(&self, ray: &Ray, max_toi: Real) -> bool { ... }
fn cast_ray(
        &self,
        m: &Isometry<Real>,
        ray: &Ray,
        max_toi: Real,
        solid: bool
    ) -> Option<Real> { ... }
fn cast_ray_and_get_normal(
        &self,
        m: &Isometry<Real>,
        ray: &Ray,
        max_toi: Real,
        solid: bool
    ) -> Option<RayIntersection> { ... }
fn intersects_ray(
        &self,
        m: &Isometry<Real>,
        ray: &Ray,
        max_toi: Real
    ) -> bool { ... } }

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

Required methods

fn cast_local_ray_and_get_normal(
    &self,
    ray: &Ray,
    max_toi: Real,
    solid: bool
) -> Option<RayIntersection>
[src]

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

Loading content...

Provided methods

fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>[src]

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

fn intersects_local_ray(&self, ray: &Ray, max_toi: Real) -> bool[src]

Tests whether a ray intersects this transformed shape.

fn cast_ray(
    &self,
    m: &Isometry<Real>,
    ray: &Ray,
    max_toi: Real,
    solid: bool
) -> Option<Real>
[src]

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

fn cast_ray_and_get_normal(
    &self,
    m: &Isometry<Real>,
    ray: &Ray,
    max_toi: Real,
    solid: bool
) -> Option<RayIntersection>
[src]

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

fn intersects_ray(&self, m: &Isometry<Real>, ray: &Ray, max_toi: Real) -> bool[src]

Tests whether a ray intersects this transformed shape.

Loading content...

Implementors

impl RayCast for AABB[src]

impl RayCast for BoundingSphere[src]

impl RayCast for Ball[src]

impl RayCast for Capsule[src]

impl RayCast for Compound[src]

impl RayCast for Cone[src]

impl RayCast for ConvexPolyhedron[src]

impl RayCast for Cuboid[src]

impl RayCast for Cylinder[src]

impl RayCast for HalfSpace[src]

impl RayCast for HeightField[src]

impl RayCast for Polyline[src]

impl RayCast for Segment[src]

impl RayCast for TriMesh[src]

impl RayCast for Triangle[src]

impl<S: SupportMap> RayCast for RoundShape<S>[src]

Loading content...