KeySplineSolver
struct · ferroui-base · v0.5.0
struct KeySplineSolver
The curve of a KeySpline with fixed control points, as a plain value.
A key spline is an object of the UI thread; a spline easing that a key frame animation of the compositor uses is evaluated on the render thread with this solver. It is the same algorithm, with the same search state (the parameter of the most recent progress is the next first guess).
Members
new
fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
Creates the solver of the curve with the given control points.
get_spline_progress
fn get_spline_progress(self: &mut Self, linear_progress: f64) -> f64
Calculates the spline progress from a linear progress.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.