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
Initializes a new instance of the StandardEasingCalculator class.
public StandardEasingCalculator()
Initializes a new instance of the StandardEasingCalculator class with the specified easing type.
public StandardEasingCalculator(RadEasingType easingType)
The type of easing function to use.
Properties
Gets or sets the type of easing function to apply.
public RadEasingType EasingType { get; set; }
The easing type that determines the animation curve.
Methods
Calculates the current double value using easing interpolation.
public override 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.
Overrides:
Calculates the current float value using easing interpolation.
public override 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.
Overrides:
Calculates the current integer value using easing interpolation.
public override 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.
Overrides: