Table of Contents

Class SplineEasing

Namespace
Avalonia.Animation.Easings
Assembly
Avalonia.Base.dll

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

x1 double
y1 double
x2 double
y2 double

Properties

X1

X coordinate of the first control point

public double X1 { get; set; }

Property Value

double

X2

X coordinate of the second control point

public double X2 { get; set; }

Property Value

double

Y1

Y coordinate of the first control point

public double Y1 { get; set; }

Property Value

double

Y2

Y coordinate of the second control point

public double Y2 { get; set; }

Property Value

double

Methods

Ease(double)

Returns the value of the transition for the specified progress.

public override double Ease(double progress)

Parameters

progress double

Returns

double