Skip to main content

Movement

Struct Movement 

Source
pub struct Movement<V, B> {
    pub velocity: V,
    pub spin: B,
}

Fields§

§velocity: V§spin: B

Trait Implementations§

Source§

impl<P, R, V, B> Add<Movement<V, B>> for Transform<P, R>
where P: Add<V, Output = P>, B: Exp<Output = R>, R: Mul<Output = R>,

Source§

type Output = Transform<P, R>

The resulting type after applying the + operator.
Source§

fn add(self, movement: Movement<V, B>) -> Self

Performs the + operation. Read more
Source§

impl<V, B> Add for Movement<V, B>
where V: Add<Output = V>, B: Add<Output = B>,

Source§

type Output = Movement<V, B>

The resulting type after applying the + operator.
Source§

fn add(self, __rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<P, R, V, B> AddAssign<Movement<V, B>> for Transform<P, R>
where P: AddAssign<V>, B: Exp<Output = R>, R: MulAssign,

Source§

fn add_assign(&mut self, movement: Movement<V, B>)

Performs the += operation. Read more
Source§

impl<V, B> AddAssign for Movement<V, B>
where V: AddAssign, B: AddAssign,

Source§

fn add_assign(&mut self, __rhs: Self)

Performs the += operation. Read more
Source§

impl<V: Clone, B: Clone> Clone for Movement<V, B>

Source§

fn clone(&self) -> Movement<V, B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V: Debug, B: Debug> Debug for Movement<V, B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<V, B> Div<<V as VectorSpace>::Scalar> for Movement<V, B>
where V: VectorSpace, B: VectorSpace<Scalar = V::Scalar>,

Source§

type Output = Movement<V, B>

The resulting type after applying the / operator.
Source§

fn div(self, scalar: V::Scalar) -> Self

Performs the / operation. Read more
Source§

impl<V, B> DivAssign<<V as VectorSpace>::Scalar> for Movement<V, B>
where V: VectorSpace + DivAssign<V::Scalar>, B: VectorSpace<Scalar = V::Scalar> + DivAssign<V::Scalar>,

Source§

fn div_assign(&mut self, scalar: V::Scalar)

Performs the /= operation. Read more
Source§

impl<V, B> Mul<<V as VectorSpace>::Scalar> for Movement<V, B>
where V: VectorSpace, B: VectorSpace<Scalar = V::Scalar>,

Source§

type Output = Movement<V, B>

The resulting type after applying the * operator.
Source§

fn mul(self, scalar: V::Scalar) -> Self

Performs the * operation. Read more
Source§

impl<V, B> MulAssign<<V as VectorSpace>::Scalar> for Movement<V, B>
where V: VectorSpace + MulAssign<V::Scalar>, B: VectorSpace<Scalar = V::Scalar> + MulAssign<V::Scalar>,

Source§

fn mul_assign(&mut self, scalar: V::Scalar)

Performs the *= operation. Read more
Source§

impl<V: Neg<Output = V>, B: Neg<Output = B>> Neg for Movement<V, B>

Source§

type Output = Movement<V, B>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Movement<V, B>

Performs the unary - operation. Read more
Source§

impl<V: PartialEq, B: PartialEq> PartialEq for Movement<V, B>

Source§

fn eq(&self, other: &Movement<V, B>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<P, R, V, B> Sub<Movement<V, B>> for Transform<P, R>
where P: Sub<V, Output = P>, B: Exp<Output = R>, R: Div<Output = R>,

Source§

type Output = Transform<P, R>

The resulting type after applying the - operator.
Source§

fn sub(self, movement: Movement<V, B>) -> Self

Performs the - operation. Read more
Source§

impl<V, B> Sub for Movement<V, B>
where V: Sub<Output = V>, B: Sub<Output = B>,

Source§

type Output = Movement<V, B>

The resulting type after applying the - operator.
Source§

fn sub(self, __rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<P, R, V, B> SubAssign<Movement<V, B>> for Transform<P, R>
where P: SubAssign<V>, B: Exp<Output = R>, R: DivAssign,

Source§

fn sub_assign(&mut self, movement: Movement<V, B>)

Performs the -= operation. Read more
Source§

impl<V, B> SubAssign for Movement<V, B>
where V: SubAssign, B: SubAssign,

Source§

fn sub_assign(&mut self, __rhs: Self)

Performs the -= operation. Read more
Source§

impl<V: Zero, B: Zero> Zero for Movement<V, B>

Source§

fn zero() -> Self

Source§

fn is_zero(&self) -> bool

Source§

impl<V: Copy, B: Copy> Copy for Movement<V, B>

Source§

impl<V: Eq, B: Eq> Eq for Movement<V, B>

Source§

impl<V, B> StructuralPartialEq for Movement<V, B>

Auto Trait Implementations§

§

impl<V, B> Freeze for Movement<V, B>
where V: Freeze, B: Freeze,

§

impl<V, B> RefUnwindSafe for Movement<V, B>

§

impl<V, B> Send for Movement<V, B>
where V: Send, B: Send,

§

impl<V, B> Sync for Movement<V, B>
where V: Sync, B: Sync,

§

impl<V, B> Unpin for Movement<V, B>
where V: Unpin, B: Unpin,

§

impl<V, B> UnsafeUnpin for Movement<V, B>
where V: UnsafeUnpin, B: UnsafeUnpin,

§

impl<V, B> UnwindSafe for Movement<V, B>
where V: UnwindSafe, B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.