compute

abstract fun compute(previous: Offset, current: Offset, next: Offset, subsequent: Offset): Pair<Offset, Offset>

Computes the two control points for a cubic Bézier curve segment.

The first returned Offset corresponds to control point 1 (x1, y1) and the second to control point 2 (x2, y2), as defined in Path.cubicTo. https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path#cubicTo(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)

Return

A Pair containing the two control points for the curve segment.

Parameters

previous

The data point before the current point in the series.

current

The starting point of the Bézier curve segment.

next

The ending point of the Bézier curve segment.

subsequent

The data point after the next point in the series.