Class SplineEasing
Eases a double value using a user-defined cubic bezier curve. Good for custom easing functions that doesn't quite fit with the built-in ones.
public class SplineEasing : Easing, IEasing
- Inheritance
-
SplineEasing
- Implements
- Inherited Members
Constructors
SplineEasing()
public SplineEasing()
SplineEasing(KeySpline)
public SplineEasing(KeySpline keySpline)
Parameters
keySpline
KeySpline
SplineEasing(double, double, double, double)
public SplineEasing(double x1 = 0, double y1 = 0, double x2 = 1, double y2 = 1)
Parameters
Properties
X1
X coordinate of the first control point
public double X1 { get; set; }
Property Value
X2
X coordinate of the second control point
public double X2 { get; set; }
Property Value
Y1
Y coordinate of the first control point
public double Y1 { get; set; }
Property Value
Y2
Y coordinate of the second control point
public double Y2 { get; set; }
Property Value
Methods
Ease(double)
Returns the value of the transition for the specified progress.
public override double Ease(double progress)
Parameters
progress
double