ClassStandardEasingCalculator
Provides standard easing function implementations for smooth animation transitions. Supports various easing types including linear, quadratic, cubic, and bounce effects.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class StandardEasingCalculator : EasingCalculator
Inheritance: objectEasingCalculatorStandardEasingCalculator
Constructors
StandardEasingCalculator()
Initializes a new instance of the StandardEasingCalculator class.
Declaration
public StandardEasingCalculator()
StandardEasingCalculator(RadEasingType)
Initializes a new instance of the StandardEasingCalculator class with the specified easing type.
Declaration
public StandardEasingCalculator(RadEasingType easingType)
Parameters
easingType
The type of easing function to use.
Properties
EasingType
Gets or sets the type of easing function to apply.
Declaration
public RadEasingType EasingType { get; set; }
Property Value
The easing type that determines the animation curve.
Methods
CalculateCurrentValue(double, double, int, int)
Calculates the current double value using easing interpolation.
Declaration
public override 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.
Overrides
CalculateCurrentValue(float, float, int, int)
Calculates the current float value using easing interpolation.
Declaration
public override 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.
Overrides
CalculateCurrentValue(int, int, int, int)
Calculates the current integer value using easing interpolation.
Declaration
public override 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.
Overrides