AutoMovie API
    Preparing search index...
    • Evaluate the curve at x.

      An open curve holds its end values outside its knots; a periodic curve wraps x into one period from the first knot. Between knots it is the cubic Hermite segment of the two knots' values and slopes.

      Parameters

      • xs: ArrayLike<number>

        Knots, as given to slope.

      • ys: ArrayLike<number>

        Values, as given to slope.

      • slopes: ArrayLike<number>

        Slopes from slope.

      • n: number

        Number of knots used.

      • period: number

        Repeat length, or 0 for an open curve.

      • input: number

        Abscissa.

      Returns number

      The value.