[][src]Type Definition vek::transition::LinearTransition

type LinearTransition<T, Progress = f32> = Transition<T, IdentityProgressMapper, Progress>;

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

Methods

impl<T, Progress> LinearTransition<T, Progress>[src]

pub fn new(start: T, end: T) -> Self where
    Progress: Zero
[src]

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.