Skip to content

EasingBase Class

The base class for an easing function.

C#
[DataContract]
public abstract class EasingBase

Inheritance object

Creates a new instance of this type.

C#
public EasingBase()

The easing mode.

C#
[DataMember]
public EasingMode Mode { get; set; }

Called to apply an easing function to the value.

C#
public abstract double Ease(double elapsedTime, double startingValue, double endingValue, double maxDuration)

elapsedTime double
The total time applied to the function.

startingValue double
The starting value.

endingValue double
The ending value.

maxDuration double
Total time applied to easing.

double
A calculated value.