Class EasingCalculator
Abstract base class for easing calculations used in property animations. Provides mathematical functions for smooth value transitions between start and end values.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public abstract class EasingCalculator
Constructors
EasingCalculator()
Declaration
protected EasingCalculator()
Methods
CalculateCurrentValue(Double, Double, Int32, Int32)
Calculates the current double value using easing interpolation.
Declaration
public abstract double CalculateCurrentValue(double initialValue, double endValue, int currentFrame, int numFrames)
Parameters
System.Double
initialValue
The starting double value. |
System.Double
endValue
The ending double value. |
System.Int32
currentFrame
The current frame number. |
System.Int32
numFrames
The total number of frames. |
Returns
System.Double
The calculated double value for the current frame. |
CalculateCurrentValue(Int32, Int32, Int32, Int32)
Calculates the current integer value using easing interpolation.
Declaration
public abstract int CalculateCurrentValue(int initialValue, int endValue, int currentFrame, int numFrames)
Parameters
System.Int32
initialValue
The starting integer value. |
System.Int32
endValue
The ending integer value. |
System.Int32
currentFrame
The current frame number. |
System.Int32
numFrames
The total number of frames. |
Returns
System.Int32
The calculated integer value for the current frame. |
CalculateCurrentValue(Single, Single, Int32, Int32)
Calculates the current float value using easing interpolation.
Declaration
public abstract float CalculateCurrentValue(float initialValue, float endValue, int currentFrame, int numFrames)
Parameters
System.Single
initialValue
The starting float value. |
System.Single
endValue
The ending float value. |
System.Int32
currentFrame
The current frame number. |
System.Int32
numFrames
The total number of frames. |
Returns
System.Single
The calculated float value for the current frame. |