Interface CurveCardinalFactory

A curve factory for cubic cardinal spline generators.

interface CurveCardinalFactory {
    tension(tension): CurveCardinalFactory;
    (context): CurveGenerator;
}

Hierarchy

Methods

Methods

  • Returns a cardinal curve factory with the specified tension in the range [0, 1]. The tension determines the length of the tangents: a tension of one yields all zero tangents, equivalent to curveLinear; a tension of zero produces a uniform Catmull–Rom spline.

    Parameters

    • tension: number

      A constant in the [0, 1] interval.

    Returns CurveCardinalFactory