[−][src]Trait yoyo_physics::threshold::Threshold
Implemented by types that can evaluate an approximation and determine if it is resting.
Associated Types
type Value
[src]
The type of value that this threshold applies to.
type Velocity
[src]
The type of velocity that this threshold applies to.
Required methods
pub fn evaluate(
&mut self,
approximation: &Approximation<Self::Value, Self::Velocity>
) -> bool
[src]
&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
pub 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
pub 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,