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