Show / Hide Table of Contents

Class EasingBase

The base class for an easing function.

Inheritance
object
EasingBase
Bounce
Circle
Expo
Linear
Quad
Sine
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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.

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX