BezierEase

class BezierEase(x1: Double, y1: Double, x2: Double, y2: Double) : Ease

Imagine a 2D bezier curve from 0,0 to 1,1 using the intermediate points x1,y1 and x2,y2.

The x value is equivalent to the t value in ease, and the y value is the result of ease.

In order the work out the y value, we first need to calculated how "far" along (in time) the bezier curve we are. Annoyingly this is also called "t", but is unrelated to the parameter of the ease function.

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun ease(t: Double): Double