Trait parry3d_f64::query::point::PointQuery [−][src]
pub trait PointQuery { fn project_local_point(
&self,
pt: &Point<Real>,
solid: bool
) -> PointProjection; fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId); fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real { ... } fn contains_local_point(&self, pt: &Point<Real>) -> bool { ... } fn project_point(
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> PointProjection { ... } fn distance_to_point(
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> Real { ... } fn project_point_and_get_feature(
&self,
m: &Isometry<Real>,
pt: &Point<Real>
) -> (PointProjection, FeatureId) { ... } fn contains_point(&self, m: &Isometry<Real>, pt: &Point<Real>) -> bool { ... } }
Expand description
Trait of objects that can be tested for point inclusion and projection.
Required methods
fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
Expand description
Projects a point on self
.
The point is assumed to be expressed in the local-space of self
.
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
Expand description
Projects a point on the boundary of self
and returns the id of the
feature the point was projected on.
Provided methods
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
Expand description
Computes the minimal distance between a point and self
.
fn contains_local_point(&self, pt: &Point<Real>) -> bool
[src]
Expand description
Tests if the given point is inside of self
.
fn project_point(
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> PointProjection
Expand description
Projects a point on self
transformed by m
.
fn distance_to_point(
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> Real
[src]
&self,
m: &Isometry<Real>,
pt: &Point<Real>,
solid: bool
) -> Real
Expand description
Computes the minimal distance between a point and self
transformed by m
.
fn project_point_and_get_feature(
&self,
m: &Isometry<Real>,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
m: &Isometry<Real>,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
Expand description
Projects a point on the boundary of self
transformed by m
and returns the id of the
feature the point was projected on.
fn contains_point(&self, m: &Isometry<Real>, pt: &Point<Real>) -> bool
[src]
Expand description
Tests if the given point is inside of self
transformed by m
.
Implementors
impl PointQuery for AABB
[src]
impl PointQuery for AABB
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
impl PointQuery for BoundingSphere
[src]
impl PointQuery for BoundingSphere
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
fn contains_local_point(&self, pt: &Point<Real>) -> bool
[src]
impl PointQuery for Ball
[src]
impl PointQuery for Ball
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
fn contains_local_point(&self, pt: &Point<Real>) -> bool
[src]
impl PointQuery for Capsule
[src]
impl PointQuery for Capsule
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
impl PointQuery for Compound
[src]
impl PointQuery for Compound
[src]fn project_local_point(
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
fn contains_local_point(&self, point: &Point<Real>) -> bool
[src]
impl PointQuery for Cone
[src]
impl PointQuery for Cone
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
impl PointQuery for ConvexPolyhedron
[src]
impl PointQuery for ConvexPolyhedron
[src]fn project_local_point(
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
impl PointQuery for Cuboid
[src]
impl PointQuery for Cuboid
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
fn contains_local_point(&self, pt: &Point<Real>) -> bool
[src]
impl PointQuery for Cylinder
[src]
impl PointQuery for Cylinder
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
impl PointQuery for HalfSpace
[src]
impl PointQuery for HalfSpace
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real
[src]
fn contains_local_point(&self, pt: &Point<Real>) -> bool
[src]
impl PointQuery for HeightField
[src]
impl PointQuery for HeightField
[src]fn project_local_point(&self, point: &Point<Real>, _: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
fn contains_local_point(&self, _point: &Point<Real>) -> bool
[src]
impl PointQuery for Polyline
[src]
impl PointQuery for Polyline
[src]fn project_local_point(
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
fn contains_local_point(&self, point: &Point<Real>) -> bool
[src]
impl PointQuery for Segment
[src]
impl PointQuery for Segment
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
impl PointQuery for Tetrahedron
[src]
impl PointQuery for Tetrahedron
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
impl PointQuery for TriMesh
[src]
impl PointQuery for TriMesh
[src]fn project_local_point(
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
fn contains_local_point(&self, point: &Point<Real>) -> bool
[src]
impl PointQuery for Triangle
[src]
impl PointQuery for Triangle
[src]fn project_local_point(&self, pt: &Point<Real>, solid: bool) -> PointProjection
[src]
fn project_local_point_and_get_feature(
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
pt: &Point<Real>
) -> (PointProjection, FeatureId)
impl<S: SupportMap> PointQuery for RoundShape<S>
[src]
impl<S: SupportMap> PointQuery for RoundShape<S>
[src]fn project_local_point(
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
[src]
&self,
point: &Point<Real>,
solid: bool
) -> PointProjection
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)
[src]
&self,
point: &Point<Real>
) -> (PointProjection, FeatureId)