Struct nphysics3d::algebra::Force3[][src]

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

A force with a linear and agular (torque) component.

Fields

The linear force.

The linear force.

Methods

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

Creates a force from its linear and angular components.

A zero force.

Create a force from a slice where the linear part are stored first.

Create a force from a vector where the linear part are stored first.

Create a pure torque.

Create a pure torque.

Creates the resultant of a torque applied at the given point (relative to the center of mass).

Creates the resultant of a torque applied at the given point (relative to the center of mass).

Create a pure linear force.

Creates the resultant of a linear force applied at the given point (relative to the center of mass).

The angular part of the force.

Important traits for &'a [u8]

This force seen as a slice.

The two first entries contain the linear part and the third entry contais the angular part.

This force seen as a vector.

The linear part of the force are stored first.

This force seen as a mutable vector.

The linear part of the force are stored first.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

The resulting type after applying the + operator.

Performs the + operation.

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

Performs the += operation.

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

The resulting type after applying the - operator.

Performs the - operation.

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

Performs the -= operation.

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

The resulting type after applying the * operator.

Performs the * operation.

impl<N: Real> Neg for Force3<N>
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

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

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations

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

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