Animator.TimelineCurvepublic class CubicBezierCurve extends Object implements Animator.TimelineCurve
| 构造器 | 说明 |
|---|---|
CubicBezierCurve(float x1,
float y1,
float x2,
float y2) |
A constructor used to create a
CubicBezierCurve instance with specified control parameters. |
public CubicBezierCurve(float x1,
float y1,
float x2,
float y2)
CubicBezierCurve instance with specified control parameters.x1 - Indicates the x coordinate of the first control parameter for the cubic Bezier curve.y1 - Indicates the y coordinate of the first control parameter for the cubic Bezier curve.x2 - Indicates the x coordinate of the second control parameter for the cubic Bezier curve.y2 - Indicates the y coordinate of the second control parameter for the cubic Bezier curve.public float getCurvedTime(float time)
getCurvedTime 在接口中 Animator.TimelineCurvetime - Indicates the specified animation execution time, which is a float value ranging from 0 to 1.Animator.TimelineCurve.getCurvedTime(float time)