Trait ncollide3d::query::PointQuery [−][src]
pub trait PointQuery<N: Real> { 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>
&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)
&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.
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
.
Implementors
impl<N: Real> PointQuery<N> for Plane<N>
impl<N: Real> PointQuery<N> for Ball<N>
impl<N: Real> PointQuery<N> for Cuboid<N>
impl<N: Real> PointQuery<N> for Capsule<N>
impl<N: Real> PointQuery<N> for AABB<N>
impl<N: Real> PointQuery<N> for BoundingSphere<N>
impl<N: Real> PointQuery<N> for Cylinder<N>
impl<N: Real> PointQuery<N> for Cone<N>
impl<N: Real> PointQuery<N> for ConvexHull<N>
impl<N: Real> PointQuery<N> for Segment<N>
impl<N: Real> PointQuery<N> for Triangle<N>
impl<N: Real> PointQuery<N> for Tetrahedron<N>
impl<N: Real> PointQuery<N> for Compound<N>
impl<N: Real> PointQuery<N> for Polyline<N>
impl<N: Real> PointQuery<N> for TriMesh<N>
impl<N: Real> PointQuery<N> for Shape<N>