{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

CubicBezierEasing

public final class CubicBezierEasing implements Easing


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:

See also
FastOutSlowInEasing
LinearOutSlowInEasing
FastOutLinearInEasing

Summary

Public constructors

CubicBezierEasing(float a, float b, float c, float d)

Public methods

boolean
equals(Object other)
int
float
transform(float fraction)

Public constructors

CubicBezierEasing

public CubicBezierEasing(float a, float b, float c, float d)
Parameters
float a

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).

float b

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).

float c

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).

float d

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

equals

public boolean equals(Object other)

hashCode

public int hashCode()

transform

public float transform(float fraction)