Skip to main content

SplineEasing Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

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

Inheritance: object -> Easing -> SplineEasing

Constructors

NameDescription
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

NameDescription
EaseNo summary available.
ParseParses a Easing type string. Inherited from Easing.

Ease Method

public double Ease(double progress)

Parameters

progress double

Returns

double

Properties

NameDescription
X1X coordinate of the first control point
X2X coordinate of the second control point
Y1Y coordinate of the first control point
Y2Y 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; }