cubicBezier

@JvmStatic
fun cubicBezier(point1: Vector2, point2: Vector2): CustomTimingCurve

Creates a cubic Bezier timing curve, defined by two control points point1 and point2. The curve starts at (0, 0) and ends at (1, 1).

Return

A new CustomTimingCurve instance representing the cubic Bezier curve.

Parameters

point1

The first control point.

point2

The second control point.