Trait mgf::Constraint
[−]
[src]
pub trait Constraint { type Index: Copy; type Constrained; type Inspected; fn solve<T: ConstrainedSet<Self::Index, Self::Constrained, Self::Inspected>>(
&mut self,
_: &mut T
); }
A type that represents a constraint between some objects.
Associated Types
type Index: Copy
A type used to index ConstrainedSets in order to retrieve information on the objects being constrained.
type Constrained
A type representing values that are constrained by (and thus modified by solving) the constraint.
type Inspected
A type representing extra information required to solve the constraint that is not modified.
Required Methods
fn solve<T: ConstrainedSet<Self::Index, Self::Constrained, Self::Inspected>>(
&mut self,
_: &mut T
)
&mut self,
_: &mut T
)
Solve the constraint.
Implementors
impl<Index, Params> Constraint for ContactConstraint<Index, Params> where
Index: Copy,
Params: ContactConstraintParams, type Index = Index; type Constrained = Velocity; type Inspected = RigidBodyInfo;