[−][src]Trait yoyo_physics::threshold::Threshold
Implemented by types that can evaluate an approximation and determine if it is resting.
Associated Types
type Value
The type of value that this threshold applies to.
type Velocity
The type of velocity that this threshold applies to.
Required methods
fn evaluate(
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
This function should evaluate the given approximate and return a boolean that indicates if the threshold for resting is met.
Implementors
impl<A, B> Threshold for And<A, B> where
A: Threshold,
B: Threshold<Value = A::Value, Velocity = A::Velocity>,
[src]
A: Threshold,
B: Threshold<Value = A::Value, Velocity = A::Velocity>,
type Value = A::Value
type Velocity = A::Velocity
fn evaluate(
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
[src]
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
impl<T> Threshold for DisplacementThreshold<T> where
T: Float,
[src]
T: Float,
type Value = T
type Velocity = T
fn evaluate(
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
[src]
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
impl<T> Threshold for VelocityThreshold<T> where
T: Float,
[src]
T: Float,