[][src]Enum nphysics3d::solver::helper::ForceDirection

pub enum ForceDirection<N: RealField> {
    Linear(Unit<Vector<N>>),
    Angular(Unit<AngularVector<N>>),
}

The direction of a force in world-space.

Variants

Linear(Unit<Vector<N>>)

A linear force toward a direction.

Angular(Unit<AngularVector<N>>)

A torque wrt. an axis.

Methods

impl<N: RealField> ForceDirection<N>[src]

pub fn at_point(&self, pt: &Point<N>) -> Force<N>[src]

The force (at the specified point) resulting from this unit force applied at the specified point.

Trait Implementations

impl<N: Copy + RealField> Copy for ForceDirection<N>[src]

impl<N: Clone + RealField> Clone for ForceDirection<N>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<N: Debug + RealField> Debug for ForceDirection<N>[src]

impl<N: RealField> Neg for ForceDirection<N>[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

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

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

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

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> BorrowMut for T where
    T: ?Sized
[src]

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

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

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<T> ClosedNeg for T where
    T: Neg<Output = T>, 
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self