[][src]Struct nphysics2d::algebra::Velocity2

#[repr(C)]
pub struct Velocity2<N: Real> { pub linear: Vector2<N>, pub angular: N, }

A velocity structure combining both the linear angular velocities of a point.

Fields

The linear velocity.

The angular velocity.

Methods

impl<N: Real> Velocity2<N>
[src]

Create velocity from its linear and angular parts.

Create velocity from its linear and angular parts.

Create a purely angular velocity.

Create a purely linear velocity.

Create a zero velocity.

Computes the velocity required to move from start to end in the given time.

The angular part of the velocity.

This velocity seen as a slice.

The linear part is stored first.

This velocity seen as a mutable slice.

The linear part is stored first.

This velocity seen as a vector.

The linear part is stored first.

This velocity seen as a mutable vector.

The linear part is stored first.

Create a velocity from a vector.

The linear part of the velocity is expected to be first inside of the input vector.

Create a velocity from a slice.

The linear part of the velocity is expected to be first inside of the input slice.

Compute the velocity of a point that is located at the coordinates shift relative to the point having self as velocity.

Rotate each component of self by rot.

Transform each component of self by iso.

Trait Implementations

impl<N: Copy + Real> Copy for Velocity2<N>
[src]

impl<N: Clone + Real> Clone for Velocity2<N>
[src]

Performs copy-assignment from source. Read more

impl<N: Real> Add<Velocity2<N>> for Velocity2<N>
[src]

The resulting type after applying the + operator.

impl<N: Real> Sub<Velocity2<N>> for Velocity2<N>
[src]

The resulting type after applying the - operator.

impl<N: Real> Mul<N> for Velocity2<N>
[src]

The resulting type after applying the * operator.

impl<N: Real> Mul<Velocity2<N>> for Inertia2<N>
[src]

The resulting type after applying the * operator.

impl<N: Real> AddAssign<Velocity2<N>> for Velocity2<N>
[src]

impl<N: Real> SubAssign<Velocity2<N>> for Velocity2<N>
[src]

impl<N: Debug + Real> Debug for Velocity2<N>
[src]

Auto Trait Implementations

impl<N> Send for Velocity2<N> where
    N: Scalar

impl<N> Sync for Velocity2<N> where
    N: Scalar

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Downcast for T where
    T: Any

impl<T, Right> ClosedAdd for T where
    T: Add<Right, Output = T> + AddAssign<Right>, 

impl<T, Right> ClosedSub for T where
    T: Sub<Right, Output = T> + SubAssign<Right>, 

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

impl<T> Same for T

Should always be Self