Type Definition vek::transition::LinearTransition

source ·
pub type LinearTransition<T, Progress = f32> = Transition<T, IdentityProgressMapper, Progress>;
Expand description

A convenience structure for storing a linear progression from one value to another.

Implementations§

source§

impl<T, Progress> LinearTransition<T, Progress>

source

pub fn new(start: T, end: T) -> Selfwhere Progress: Zero,

Creates a new LinearTransition from start and end values, setting progress to zero.

source

pub fn with_progress(start: T, end: T, progress: Progress) -> Self

Creates a new LinearTransition from start, end and progress values.