Struct nphysics3d::algebra::Velocity3[][src]

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

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

Fields

The linear velocity.

The angular velocity.

Methods

impl<N: Real> Velocity3<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.

The angular part of the velocity.

Important traits for &'a [u8]

This velocity seen as a slice.

The linear part is stored first.

Important traits for &'a [u8]

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. #[inline]

This velocity seen as a mutable vector.

The linear part is stored first. #[inline]

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.

Transform each component of self by iso.

Rotate each component of self by rot.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

The resulting type after applying the + operator.

Performs the + operation.

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

Performs the += operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Performs the -= operation.

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

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Real> Mul<Velocity3<N>> for Inertia3<N>
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations

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

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