[][src]Trait parry2d::query::point::PointQuery

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 { ... } }

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]

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]

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

Loading content...

Provided methods

fn distance_to_local_point(&self, pt: &Point<Real>, solid: bool) -> Real[src]

Computes the minimal distance between a point and self.

fn contains_local_point(&self, pt: &Point<Real>) -> bool[src]

Tests if the given point is inside of self.

fn project_point(
    &self,
    m: &Isometry<Real>,
    pt: &Point<Real>,
    solid: bool
) -> PointProjection
[src]

Projects a point on self transformed by m.

fn distance_to_point(
    &self,
    m: &Isometry<Real>,
    pt: &Point<Real>,
    solid: bool
) -> Real
[src]

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]

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]

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 ConvexPolygon[src]

impl PointQuery for Cuboid[src]

impl PointQuery for HalfSpace[src]

impl PointQuery for HeightField[src]

impl PointQuery for Polyline[src]

impl PointQuery for Segment[src]

impl PointQuery for TriMesh[src]

impl PointQuery for Triangle[src]

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

Loading content...