Struct parry2d::query::visitors::CompositePointContainmentTest[][src]

pub struct CompositePointContainmentTest<'a, S: 'a> {
    pub shape: &'a S,
    pub point: &'a Point<Real>,
    pub found: bool,
}

Visitor for checking if a composite shape contains a specific point.

Fields

shape: &'a S

The composite shape on which the point containment test should be performed.

point: &'a Point<Real>

The point to be tested.

found: bool

A traversal will set this to true if the point is inside of self.shape.

Implementations

impl<'a, S> CompositePointContainmentTest<'a, S>[src]

pub fn new(shape: &'a S, point: &'a Point<Real>) -> Self[src]

Creates a new visitor for the testing containment of the given point into the given shape.

Trait Implementations

impl<'a, S: SimdCompositeShape> SimdVisitor<u32, SimdAABB> for CompositePointContainmentTest<'a, S>[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for CompositePointContainmentTest<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for CompositePointContainmentTest<'a, S> where
    S: Sync

impl<'a, S> Sync for CompositePointContainmentTest<'a, S> where
    S: Sync

impl<'a, S> Unpin for CompositePointContainmentTest<'a, S>

impl<'a, S> UnwindSafe for CompositePointContainmentTest<'a, S> where
    S: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]