Struct immi::animations::Linear
[−]
[src]
pub struct Linear;
A linear animation. The animation progresses at a constant rate.
Trait Implementations
impl Debug for Linear
[src]
impl Default for Linear
[src]
impl Clone for Linear
[src]
fn clone(&self) -> Linear
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Linear
[src]
impl Interpolation for Linear
[src]
fn calculate(&self, now: u64, start: u64, duration_ns: u64) -> f32
Takes a number of ticks (in nanoseconds) representing the current point in time, a number of ticks representing the point in time when the animation has started or will start, the duration in nanoseconds, and returns a value between 0.0 and 1.0 representing the progress of the animation. Read more