Struct trackball::Slide[][src]

pub struct Slide<N: RealField> { /* fields omitted */ }

Slide induced by displacement on screen.

Implements Default and can be created with Slide::default().

Both its methods must be invoked on matching events fired by your 3D graphics library of choice.

Implementations

impl<N: RealField> Slide<N>[src]

pub fn compute(&mut self, pos: &Point2<N>) -> Option<Vector2<N>>[src]

Computes slide between previous and current cursor/finger position in screen space.

pub fn discard(&mut self)[src]

Discards cached previous cursor/finger position on button/finger release.

Trait Implementations

impl<N: Clone + RealField> Clone for Slide<N>[src]

impl<N: Debug + RealField> Debug for Slide<N>[src]

impl<N: Default + RealField> Default for Slide<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Slide<N> where
    N: RefUnwindSafe

impl<N> Send for Slide<N>

impl<N> Sync for Slide<N>

impl<N> Unpin for Slide<N> where
    N: Unpin

impl<N> UnwindSafe for Slide<N> where
    N: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.