Trait parry2d_f64::query::RayCast [−][src]
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]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
Computes the time of impact, and normal between this transformed shape and a ray.
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]
&self,
m: &Isometry<Real>,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<Real>
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]
&self,
m: &Isometry<Real>,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
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.
Implementors
impl RayCast for AABB
[src]
impl RayCast for AABB
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for BoundingSphere
[src]
impl RayCast for BoundingSphere
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
fn intersects_local_ray(&self, ray: &Ray, max_toi: Real) -> bool
[src]
impl RayCast for Ball
[src]
impl RayCast for Ball
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for Capsule
[src]
impl RayCast for Capsule
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for Compound
[src]
impl RayCast for Compound
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for ConvexPolygon
[src]
impl RayCast for ConvexPolygon
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for Cuboid
[src]
impl RayCast for Cuboid
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for HalfSpace
[src]
impl RayCast for HalfSpace
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for HeightField
[src]
impl RayCast for HeightField
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
_: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
_: bool
) -> Option<RayIntersection>
impl RayCast for Polyline
[src]
impl RayCast for Polyline
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for Segment
[src]
impl RayCast for Segment
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for TriMesh
[src]
impl RayCast for TriMesh
[src]fn cast_local_ray(&self, ray: &Ray, max_toi: Real, solid: bool) -> Option<Real>
[src]
fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl RayCast for Triangle
[src]
impl RayCast for Triangle
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
impl<S: SupportMap> RayCast for RoundShape<S>
[src]
impl<S: SupportMap> RayCast for RoundShape<S>
[src]fn cast_local_ray_and_get_normal(
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>
[src]
&self,
ray: &Ray,
max_toi: Real,
solid: bool
) -> Option<RayIntersection>