FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

    View source

    Members

    new

    fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
    

    Creates the solver of the curve with the given control points.

    Source

    get_spline_progress

    fn get_spline_progress(self: &mut Self, linear_progress: f64) -> f64
    

    Calculates the spline progress from a linear progress.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.