public final class CubicBezierEasingFunction extends Object implements EasingFunction
Constructor and Description |
---|
CubicBezierEasingFunction(double x1,
double y1,
double x2,
double y2) |
Modifier and Type | Method and Description |
---|---|
double |
getX1() |
double |
getX2() |
double |
getY1() |
double |
getY2() |
double |
progress(double linearProgress)
Transforms a value between 0.0 and 1.0, linear relative to elapsed time, into another value (not necessarily between 0.0 and 1.0).
|
public CubicBezierEasingFunction(double x1, double y1, double x2, double y2)
public double progress(double linearProgress)
EasingFunction
progress
in interface EasingFunction
linearProgress
- a value between 0.0 and 1.0, linear relative to elapsed timepublic double getX1()
public double getX2()
public double getY1()
public double getY2()
Copyright © 2018 Xalys. All rights reserved.