Type Definition vek::transition::LinearTransition [−][src]
type LinearTransition<T, Progress = f32> = Transition<T, IdentityProgressMapper, Progress>;
A convenience structure for storing a linear progression from one value to another.
Implementations
impl<T, Progress> LinearTransition<T, Progress>
[src]
pub fn new(start: T, end: T) -> Self where
Progress: Zero,
[src]
Progress: Zero,
Creates a new LinearTransition
from start
and end
values, setting progress
to zero.
pub fn with_progress(start: T, end: T, progress: Progress) -> Self
[src]
Creates a new LinearTransition
from start
, end
and progress
values.