Trait heron::rapier_plugin::rapier3d::parry::query::PointQuery [−][src]
pub trait PointQuery {
fn project_local_point(
&self,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> PointProjection;
fn project_local_point_and_get_feature(
&self,
pt: &OPoint<f32, Const<3_usize>>
) -> (PointProjection, FeatureId);
fn distance_to_local_point(
&self,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> f32 { ... }
fn contains_local_point(&self, pt: &OPoint<f32, Const<3_usize>>) -> bool { ... }
fn project_point(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> PointProjection { ... }
fn distance_to_point(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> f32 { ... }
fn project_point_and_get_feature(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>
) -> (PointProjection, FeatureId) { ... }
fn contains_point(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>
) -> bool { ... }
}
Expand description
Trait of objects that can be tested for point inclusion and projection.
Required methods
fn project_local_point(
&self,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> PointProjection
fn project_local_point(
&self,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> PointProjection
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: &OPoint<f32, Const<3_usize>>
) -> (PointProjection, FeatureId)
fn project_local_point_and_get_feature(
&self,
pt: &OPoint<f32, Const<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
Computes the minimal distance between a point and self
.
Tests if the given point is inside of self
.
fn project_point(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> PointProjection
fn project_point(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>,
solid: bool
) -> PointProjection
Projects a point on self
transformed by m
.
Computes the minimal distance between a point and self
transformed by m
.
fn project_point_and_get_feature(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<3_usize>>
) -> (PointProjection, FeatureId)
fn project_point_and_get_feature(
&self,
m: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
pt: &OPoint<f32, Const<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.