CubicBezierEasing

class CubicBezierEasing : Easing
kotlin.Any
   ↳ androidx.animation.CubicBezierEasing

A cubic polynomial easing.

The CubicBezierEasing class implements third-order Bézier curves.

This is equivalent to the Android PathInterpolator

Rather than creating a new instance, consider using one of the common cubic Easings:

Summary

Public constructors

<init>(a: Float, b: Float, c: Float, d: Float)

A cubic polynomial easing.

Public methods

Float
invoke(fraction: Float)

Public constructors

<init>

CubicBezierEasing(
    a: Float,
    b: Float,
    c: Float,
    d: Float)

A cubic polynomial easing.

The CubicBezierEasing class implements third-order Bézier curves.

This is equivalent to the Android PathInterpolator

Rather than creating a new instance, consider using one of the common cubic Easings:

Parameters
a: Float The x coordinate of the first control point. The line through the point (0, 0) and the first control point is tangent to the easing at the point (0, 0).
b: Float The y coordinate of the first control point. The line through the point (0, 0) and the first control point is tangent to the easing at the point (0, 0).
c: Float The x coordinate of the second control point. The line through the point (1, 1) and the second control point is tangent to the easing at the point (1, 1).
d: Float The y coordinate of the second control point. The line through the point (1, 1) and the second control point is tangent to the easing at the point (1, 1).

Public methods

invoke

fun invoke(fraction: Float): Float