AutoMovie API
    Preparing search index...
    • Write the slope at each of n knots.

      Each interior slope starts as the mean of its two secants, or zero where they differ in sign or either is zero; a segment whose slope ratios leave the circle of radius 3 has both scaled back onto it; an open curve's end slopes are its end secants. A periodic curve takes secants across the wrap. One knot gives slope 0.

      Parameters

      • xs: ArrayLike<number>

        Strictly increasing knots, at least n.

      • ys: ArrayLike<number>

        Values, at least n.

      • n: number

        Number of knots used.

      • period: number

        Repeat length, or 0 for an open curve.

      • slopes: ISlopeSlopes

        Output, at least n.

      Returns void