API

Function Hermite1stDerivative

  • Returns a new scalar which is the 1st derivative of the Hermite spline defined by the scalars "value1", "value2", "tangent1", "tangent2".

    Parameters

    • value1: number

      defines the first control point

    • tangent1: number

      defines the first tangent

    • value2: number

      defines the second control point

    • tangent2: number

      defines the second tangent

    • time: number

      define where the derivative must be done

    Returns number

    1st derivative