SpringEasing
struct · ferroui-base · v0.5.0
struct SpringEasing
Eases a value using a user-defined spring formula.
Members
newwith_valuesmassset_massstiffnessset_stiffnessdampingset_dampinginitial_velocityset_initial_velocity
new
fn new() -> Self
Creates a spring easing with all parameters zero.
with_values
fn with_values(mass: f64, stiffness: f64, damping: f64, initial_velocity: f64) -> Self
Creates a spring easing with the given parameters.
mass
fn mass(self: &Self) -> f64
The spring mass.
set_mass
fn set_mass(self: &Self, value: f64)
stiffness
fn stiffness(self: &Self) -> f64
The spring stiffness.
set_stiffness
fn set_stiffness(self: &Self, value: f64)
damping
fn damping(self: &Self) -> f64
The spring damping.
set_damping
fn set_damping(self: &Self, value: f64)
initial_velocity
fn initial_velocity(self: &Self) -> f64
The spring initial velocity.
set_initial_velocity
fn set_initial_velocity(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAnyValueClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherFrom<SpringEasing>DefaultIEasingPartialEqMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.