Trait oxygengine_physics_2d::prelude::ncollide2d::query::PointQuery[][src]

pub trait PointQuery<N> where
    N: RealField
{ pub fn project_point(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        pt: &Point<N, U2>,
        solid: bool
    ) -> PointProjection<N>;
pub fn project_point_with_feature(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        pt: &Point<N, U2>
    ) -> (PointProjection<N>, FeatureId); pub fn distance_to_point(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        pt: &Point<N, U2>,
        solid: bool
    ) -> N { ... }
pub fn contains_point(
        &self,
        m: &Isometry<N, U2, Unit<Complex<N>>>,
        pt: &Point<N, U2>
    ) -> bool { ... } }

Trait of objects that can be tested for point inclusion and projection.

Required methods

pub fn project_point(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    pt: &Point<N, U2>,
    solid: bool
) -> PointProjection<N>
[src]

Projects a point on self transformed by m.

pub fn project_point_with_feature(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    pt: &Point<N, U2>
) -> (PointProjection<N>, FeatureId)
[src]

Projects a point on the boundary of self transformed by m and retuns the id of the feature the point was projected on.

Loading content...

Provided methods

pub fn distance_to_point(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    pt: &Point<N, U2>,
    solid: bool
) -> N
[src]

Computes the minimal distance between a point and self transformed by m.

pub fn contains_point(
    &self,
    m: &Isometry<N, U2, Unit<Complex<N>>>,
    pt: &Point<N, U2>
) -> bool
[src]

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

Loading content...

Implementors

impl<N> PointQuery<N> for Ball<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Capsule<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Compound<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for ConvexPolygon<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Cuboid<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for HeightField<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Plane<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Polyline<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Segment<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for Triangle<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for AABB<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for BoundingSphere<N> where
    N: RealField
[src]

impl<N> PointQuery<N> for dyn Shape<N> + 'static where
    N: RealField
[src]

Loading content...