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

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

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

Projects a point on self transformed by m.

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

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

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

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

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

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

Loading content...

Implementors

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 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 dyn Shape<N> + 'static where
    N: RealField
[src]

Loading content...