Trait oxygengine_physics_2d::prelude::ncollide2d::query::PointQuery [−][src]
pub trait PointQuery<N> where
N: RealField, { pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>; pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId); pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N { ... } pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool { ... } }
Trait of objects that can be tested for point inclusion and projection.
Required methods
pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
Projects a point on self
transformed by m
.
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (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
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
Computes the minimal distance between a point and self
transformed by m
.
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
Tests if the given point is inside of self
transformed by m
.
Implementors
impl<N> PointQuery<N> for Ball<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Ball<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for Capsule<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Capsule<N> where
N: RealField,
[src]impl<N> PointQuery<N> for Compound<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Compound<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
&Isometry<N, U2, Unit<Complex<N>>>,
&Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
&Isometry<N, U2, Unit<Complex<N>>>,
&Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for ConvexPolygon<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for ConvexPolygon<N> where
N: RealField,
[src]impl<N> PointQuery<N> for Cuboid<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Cuboid<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for HeightField<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for HeightField<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>,
bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>,
bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn contains_point(
&self,
_m: &Isometry<N, U2, Unit<Complex<N>>>,
_point: &Point<N, U2>
) -> bool
[src]
&self,
_m: &Isometry<N, U2, Unit<Complex<N>>>,
_point: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for Plane<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Plane<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for Polyline<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Polyline<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
point: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for Segment<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Segment<N> where
N: RealField,
[src]impl<N> PointQuery<N> for Triangle<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for Triangle<N> where
N: RealField,
[src]impl<N> PointQuery<N> for AABB<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for AABB<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for BoundingSphere<N> where
N: RealField,
[src]
impl<N> PointQuery<N> for BoundingSphere<N> where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
impl<N> PointQuery<N> for dyn Shape<N> + 'static where
N: RealField,
[src]
impl<N> PointQuery<N> for dyn Shape<N> + 'static where
N: RealField,
[src]pub fn project_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> PointProjection<N>
pub fn project_point_with_feature(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
pub fn distance_to_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>,
solid: bool
) -> N
pub fn contains_point(
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool
[src]
&self,
m: &Isometry<N, U2, Unit<Complex<N>>>,
pt: &Point<N, U2>
) -> bool