CurveUtil

object CurveUtil

Chart.js spline interpolation

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun transform(data: List<Vector2fc>, xPos: Float, tension: Float, onOutOfBounds: CurveUtil.OnOutOfBounds = OnOutOfBounds.CLAMP): Float

Find Y position at a given X using spline interpolation.