API

Function Hermite

  • Returns a new scalar located for "amount" (float) on the Hermite spline defined by the scalars "value1", "value3", "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

    • amount: number

      defines the amount on the interpolation spline (between 0 and 1)

    Returns number

    hermite result