Trait ncollide::query::point_internal::PointQuery
[−]
[src]
pub trait PointQuery<P, M> where
P: Point, { fn project_point(&self, m: &M, pt: &P, solid: bool) -> PointProjection<P>; fn distance_to_point(
&self,
m: &M,
pt: &P,
solid: bool
) -> <P as EuclideanSpace>::Real { ... } fn contains_point(&self, m: &M, pt: &P) -> bool { ... } }
Trait of objects that can be tested for point inclusion and projection.
Required Methods
fn project_point(&self, m: &M, pt: &P, solid: bool) -> PointProjection<P>
Projects a point on self
transformed by m
.
Provided Methods
fn distance_to_point(
&self,
m: &M,
pt: &P,
solid: bool
) -> <P as EuclideanSpace>::Real
&self,
m: &M,
pt: &P,
solid: bool
) -> <P as EuclideanSpace>::Real
Computes the minimal distance between a point and self
transformed by m
.
fn contains_point(&self, m: &M, pt: &P) -> bool
Tests if the given point is inside of self
transformed by m
.
Implementors
impl<P, M> PointQuery<P, M> for ConvexHull<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for AABB<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Polyline<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Cylinder<<P as EuclideanSpace>::Real> where
M: Isometry<P>,
P: Point,impl<P, M, I, E> PointQuery<P, M> for BaseMesh<P, I, E> where
E: BaseMeshElement<I, P> + PointQuery<P, Id<Multiplicative>> + PointQueryWithLocation<P, Id<Multiplicative>>,
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Segment<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Ball<<P as EuclideanSpace>::Real> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Triangle<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Tetrahedron<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Cone<<P as EuclideanSpace>::Real> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for BoundingSphere<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for TriMesh<P> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Capsule<<P as EuclideanSpace>::Real> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Compound<P, M> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Plane<<P as Point>::Vector> where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Shape<P, M> + 'static where
M: Isometry<P>,
P: Point,impl<P, M> PointQuery<P, M> for Cuboid<<P as Point>::Vector> where
M: Isometry<P>,
P: Point,