SplineEasing Class
Definition
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
Constructors
| Name | Description |
|---|---|
| SplineEasing (3 overloads) | No summary available. |
SplineEasing overloads
SplineEasing Constructor
public SplineEasing()
SplineEasing Constructor
public SplineEasing(Avalonia.Animation.KeySpline keySpline)
Parameters
keySpline Avalonia.Animation.KeySpline
SplineEasing Constructor
public SplineEasing(double x1, double y1, double x2, double y2)
Parameters
x1 double
y1 double
x2 double
y2 double
Methods
Ease Method
public double Ease(double progress)
Parameters
progress double
Returns
double
Properties
| Name | Description |
|---|---|
| X1 | X coordinate of the first control point |
| X2 | X coordinate of the second control point |
| Y1 | Y coordinate of the first control point |
| Y2 | Y coordinate of the second control point |
X1 Property
X coordinate of the first control point
public double X1 { get; set; }
X2 Property
X coordinate of the second control point
public double X2 { get; set; }
Y1 Property
Y coordinate of the first control point
public double Y1 { get; set; }
Y2 Property
Y coordinate of the second control point
public double Y2 { get; set; }