Trait veloren_voxygen_anim::vek::ProgressMapper
source · pub trait ProgressMapper<Progress = f32> {
// Required method
fn map_progress(&self, progress: Progress) -> Progress;
}
Expand description
A functor that maps a progress value to a LERP factor.
Required Methods§
sourcefn map_progress(&self, progress: Progress) -> Progress
fn map_progress(&self, progress: Progress) -> Progress
Maps an unconstrained progress value to a LERP factor.
The input progress value should be between zero and one, but is not required to.
The returned LERP factor should be between zero and one, but is not required to.