Interface CubicHermite.Tangent

  • All Known Implementing Classes:
    CubicHermite.Tangents
    Enclosing class:
    CubicHermite

    public static interface CubicHermite.Tangent
    The method for computing the control tangent at a given index. A variety of methods exist, which will affect the shape and properties of the interpolated function (such as preserving monotonicity).
    • Method Detail

      • tangentAt

        double tangentAt​(SortedOrderedPairs pairs,
                         int k)
        Compute the tangent at the given index k, from the given collection of points.
        Parameters:
        pairs - the points from which the tangent is computed
        k - the point index at which the tangent is computed
        Returns:
        the tangent at the k-th point