Class EasingBase
The base class for an easing function.
Inherited Members
Namespace: SadConsole.EasingFunctions
Assembly: SadConsole.dll
Syntax
[DataContract]
public abstract class EasingBase
Constructors
EasingBase()
Creates a new instance of this type.
Declaration
public EasingBase()
Properties
Mode
The easing mode.
Declaration
[DataMember]
public EasingMode Mode { get; set; }
Property Value
Type | Description |
---|---|
EasingMode |
Methods
Ease(double, double, double, double)
Called to apply an easing function to the value.
Declaration
public abstract double Ease(double elapsedTime, double startingValue, double endingValue, double maxDuration)
Parameters
Type | Name | Description |
---|---|---|
double | elapsedTime | The total time applied to the function. |
double | startingValue | The starting value. |
double | endingValue | The ending value. |
double | maxDuration | Total time applied to easing. |
Returns
Type | Description |
---|---|
double | A calculated value. |