Interpolator

interface Interpolator

Interpolates between a LineCartesianLayer line’s points, defining its shape.

Types

Link copied to clipboard
object Companion

Houses Interpolator singletons and factory functions.

Functions

Link copied to clipboard

Returns the y-value range of the interpolated curve for the given y values. This may be wider than the range of y if the interpolation overshoots (e.g., for splines). The default implementation returns the range of y.

Link copied to clipboard
abstract fun interpolate(context: CartesianDrawingContext, path: Path, points: List<PointF>, visibleIndexRange: IntRange)

Draws path through points. Only the points in visibleIndexRange need to produce path operations, but the remaining points are available for use in interpolation.