Trait oxygengine_physics_2d::prelude::ncollide2d::query::RayCast[][src]

pub trait RayCast<N> where
    N: RealField
{ pub fn toi_and_normal_with_ray(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        ray: &Ray<N>,
        max_toi: N,
        solid: bool
    ) -> Option<RayIntersection<N>>; pub fn toi_with_ray(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        ray: &Ray<N>,
        max_toi: N,
        solid: bool
    ) -> Option<N> { ... }
pub fn intersects_ray(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        ray: &Ray<N>,
        max_toi: N
    ) -> bool { ... } }

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

Required methods

pub fn toi_and_normal_with_ray(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    ray: &Ray<N>,
    max_toi: N,
    solid: bool
) -> Option<RayIntersection<N>>
[src]

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

Loading content...

Provided methods

pub fn toi_with_ray(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    ray: &Ray<N>,
    max_toi: N,
    solid: bool
) -> Option<N>
[src]

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

pub fn intersects_ray(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    ray: &Ray<N>,
    max_toi: N
) -> bool
[src]

Tests whether a ray intersects this transformed shape.

Loading content...

Implementors

impl<N> RayCast<N> for Ball<N> where
    N: RealField
[src]

impl<N> RayCast<N> for Capsule<N> where
    N: RealField
[src]

impl<N> RayCast<N> for Compound<N> where
    N: RealField
[src]

impl<N> RayCast<N> for ConvexPolygon<N> where
    N: RealField
[src]

impl<N> RayCast<N> for Cuboid<N> where
    N: RealField
[src]

impl<N> RayCast<N> for HeightField<N> where
    N: RealField
[src]

impl<N> RayCast<N> for Plane<N> where
    N: RealField
[src]

impl<N> RayCast<N> for Polyline<N> where
    N: RealField
[src]

impl<N> RayCast<N> for Segment<N> where
    N: RealField
[src]

impl<N> RayCast<N> for AABB<N> where
    N: RealField
[src]

impl<N> RayCast<N> for BoundingSphere<N> where
    N: RealField
[src]

impl<N> RayCast<N> for dyn Shape<N> + 'static where
    N: RealField
[src]

Loading content...