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§

source

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.

Implementors§

source§

impl<Progress> ProgressMapper<Progress> for IdentityProgressMapper

source§

impl<Progress> ProgressMapper<Progress> for ProgressMapperFn<Progress>