[][src]Struct nphysics3d::solver::ConstraintSet

pub struct ConstraintSet<N: RealField> {
    pub velocity: Constraints<N>,
    pub position: NonlinearConstraints<N>,
}

A set of all velocity constraints and non-linear position-based constraints.

Fields

velocity: Constraints<N>

The velocity constraints constructed.

position: NonlinearConstraints<N>

The position constraints constructed.

Methods

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

pub fn new() -> Self[src]

Create a new empty set of constraints.

pub fn len(&self) -> usize[src]

The total number of constraints on this set.

pub fn clear(&mut self)[src]

Remove all constraints from this set.

Auto Trait Implementations

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

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

Blanket Implementations

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

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<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T

type Output = T

Should always be Self