EasingCalculator
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
protected EasingCalculator()
Methods
Calculates the current double value using easing interpolation.
public abstract double CalculateCurrentValue(double initialValue, double endValue, int currentFrame, int numFrames)
The starting double value.
endValuedoubleThe ending double value.
currentFrameintThe current frame number.
numFramesintThe total number of frames.
Returns:The calculated double value for the current frame.
Calculates the current float value using easing interpolation.
public abstract float CalculateCurrentValue(float initialValue, float endValue, int currentFrame, int numFrames)
The starting float value.
endValuefloatThe ending float value.
currentFrameintThe current frame number.
numFramesintThe total number of frames.
Returns:The calculated float value for the current frame.
Calculates the current integer value using easing interpolation.
public abstract int CalculateCurrentValue(int initialValue, int endValue, int currentFrame, int numFrames)
The starting integer value.
endValueintThe ending integer value.
currentFrameintThe current frame number.
numFramesintThe total number of frames.
Returns:The calculated integer value for the current frame.