[][src]Struct yoyo_physics::Approximation

pub struct Approximation<T, V = T> {
    pub value: T,
    pub velocity: V,
}

Approximation of the value (y-coordinate) and velocity of a curve at the given (unnormalized) time (x-coordinate).

Fields

value: T

This is the y-coordinate of an approximation.

velocity: V

This is the y-coordinate of the derivative at the x-coordinate of this approximation.

Trait Implementations

impl<T: Clone, V: Clone> Clone for Approximation<T, V>[src]

impl<T: Copy, V: Copy> Copy for Approximation<T, V>[src]

impl<T: Debug, V: Debug> Debug for Approximation<T, V>[src]

impl<T: Eq, V: Eq> Eq for Approximation<T, V>[src]

impl<T: PartialEq, V: PartialEq> PartialEq<Approximation<T, V>> for Approximation<T, V>[src]

impl<T, V> StructuralEq for Approximation<T, V>[src]

impl<T, V> StructuralPartialEq for Approximation<T, V>[src]

Auto Trait Implementations

impl<T, V> RefUnwindSafe for Approximation<T, V> where
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<T, V> Send for Approximation<T, V> where
    T: Send,
    V: Send

impl<T, V> Sync for Approximation<T, V> where
    T: Sync,
    V: Sync

impl<T, V> Unpin for Approximation<T, V> where
    T: Unpin,
    V: Unpin

impl<T, V> UnwindSafe for Approximation<T, V> where
    T: UnwindSafe,
    V: 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> 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.