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]

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]

Projects a point on the boundary of self and returns the id of the feature the point was projected on.

Loading content...

Provided methods

pub fn distance_to_local_point(
    &self,
    pt: &Point<f32, 3_usize>,
    solid: bool
) -> f32
[src]

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]

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]

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]

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]

Tests if the given point is inside of self transformed by m.

Loading content...

Implementors

impl PointQuery for AABB[src]

impl PointQuery for BoundingSphere[src]

impl PointQuery for Ball[src]

impl PointQuery for Capsule[src]

impl PointQuery for Compound[src]

impl PointQuery for Cone[src]

impl PointQuery for ConvexPolyhedron[src]

impl PointQuery for Cuboid[src]

impl PointQuery for Cylinder[src]

impl PointQuery for HalfSpace[src]

impl PointQuery for HeightField[src]

impl PointQuery for Polyline[src]

impl PointQuery for Segment[src]

impl PointQuery for Tetrahedron[src]

impl PointQuery for TriMesh[src]

impl PointQuery for Triangle[src]

impl<S> PointQuery for RoundShape<S> where
    S: SupportMap
[src]

Loading content...