Class AnimationFunctionNumber

Calculates the values between AnimationKeys. Represented internally by a cubic function (f(x) = ax³ + bx² + cx + d). Only needs to be recalculated when the keys change, so at runtime it should only be calculated once.

Authors

Lukas Scheuerle, HFU, 2019 | Jonas Plotzky, HFU, 2025

Hierarchy (view full)

Constructors

Methods

  • Returns the parameter values of this cubic function. f(x) = ax³ + bx² + cx + d Used by editor.

    Returns {
        a: number;
        b: number;
        c: number;
        d: number;
    }

    • a: number
    • b: number
    • c: number
    • d: number