Fudge Core
    Preparing search index...

    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.

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

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Calculates the value of the function at the given time.

      Parameters

      • _time: number

        the point in time at which to evaluate the function in milliseconds. Will be corrected for offset internally.

      Returns number

      the value at the given time