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