CubicBezier

class CubicBezier(val x1: Double, val y1: Double, val x2: Double, val y2: Double) : MvtExpression.Interpolation

Cubic Bezier control points (x1, y1, x2, y2) — same semantics as Mapbox's ["cubic-bezier", x1, y1, x2, y2]. Implemented via Newton-Raphson over the X coordinate to find the curve parameter t at the requested input.

Constructors

Link copied to clipboard
constructor(x1: Double, y1: Double, x2: Double, y2: Double)

Properties

Link copied to clipboard
val x1: Double
Link copied to clipboard
val x2: Double
Link copied to clipboard
val y1: Double
Link copied to clipboard
val y2: Double