[][src]Trait ncollide3d::query::PointQuery

pub trait PointQuery<N: RealField> {
    fn project_point(
        &self,
        m: &Isometry<N>,
        pt: &Point<N>,
        solid: bool
    ) -> PointProjection<N>;
fn project_point_with_feature(
        &self,
        m: &Isometry<N>,
        pt: &Point<N>
    ) -> (PointProjection<N>, FeatureId); fn distance_to_point(
        &self,
        m: &Isometry<N>,
        pt: &Point<N>,
        solid: bool
    ) -> N { ... }
fn contains_point(&self, m: &Isometry<N>, pt: &Point<N>) -> bool { ... } }

Trait of objects that can be tested for point inclusion and projection.

Required methods

fn project_point(
    &self,
    m: &Isometry<N>,
    pt: &Point<N>,
    solid: bool
) -> PointProjection<N>

Projects a point on self transformed by m.

fn project_point_with_feature(
    &self,
    m: &Isometry<N>,
    pt: &Point<N>
) -> (PointProjection<N>, FeatureId)

Projects a point on the boundary of self transformed by m and retuns the id of the feature the point was projected on.

Loading content...

Provided methods

fn distance_to_point(&self, m: &Isometry<N>, pt: &Point<N>, solid: bool) -> N

Computes the minimal distance between a point and self transformed by m.

fn contains_point(&self, m: &Isometry<N>, pt: &Point<N>) -> bool

Tests if the given point is inside of self transformed by m.

Loading content...

Implementors

impl<N: RealField> PointQuery<N> for AABB<N>[src]

impl<N: RealField> PointQuery<N> for BoundingSphere<N>[src]

impl<N: RealField> PointQuery<N> for Ball<N>[src]

impl<N: RealField> PointQuery<N> for Capsule<N>[src]

impl<N: RealField> PointQuery<N> for Compound<N>[src]

impl<N: RealField> PointQuery<N> for Cone<N>[src]

impl<N: RealField> PointQuery<N> for ConvexHull<N>[src]

impl<N: RealField> PointQuery<N> for Cuboid<N>[src]

impl<N: RealField> PointQuery<N> for Cylinder<N>[src]

impl<N: RealField> PointQuery<N> for HeightField<N>[src]

impl<N: RealField> PointQuery<N> for Plane<N>[src]

impl<N: RealField> PointQuery<N> for Polyline<N>[src]

impl<N: RealField> PointQuery<N> for Segment<N>[src]

impl<N: RealField> PointQuery<N> for Tetrahedron<N>[src]

impl<N: RealField> PointQuery<N> for TriMesh<N>[src]

impl<N: RealField> PointQuery<N> for Triangle<N>[src]

impl<N: RealField> PointQuery<N> for dyn Shape<N>[src]

Loading content...