Interpolation
Types
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard