Companion

object Companion

Houses Interpolator singletons and factory functions.

Properties

Link copied to clipboard

Uses line segments.

Functions

Link copied to clipboard

Uses a Catmull–Rom spline. alpha, which must be in [0, 1), controls the tightness: 0 (the default) produces the standard Catmull–Rom spline, and values approaching 1 produce near-straight lines. Catmull–Rom splines pass through all data points and produce straight segments for collinear points.

Link copied to clipboard

Uses cubic Bézier curves. curvature, which must be in (0, 1], defines their strength.