Struct raylib::ease::Tween[][src]

pub struct Tween { /* fields omitted */ }
Expand description

A manager for a tween on a single f32 value.

Implementations

Creates a new Tween given the easing function, value bounds, and duration.

Resets the tween to the beginning.

Returns true if the tween has completed.

Returns the new value after applying the tween, advancing time by time_advance.

Reverses the tween, adjusting the current time position such that it will retrace its steps so far.

Returns the current time position of the tween.

Returns the starting value of the tween.

Returns the ending value of the tween.

Returns the duration of the tween.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.