New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public abstract class EasingCalculator

Inheritance: objectEasingCalculator

Derived Classes: StandardEasingCalculator

Constructors

C#
protected EasingCalculator()

Methods

Calculates the current double value using easing interpolation.

C#
public abstract double CalculateCurrentValue(double initialValue, double endValue, int currentFrame, int numFrames)
Parameters:initialValuedouble

The starting double value.

endValuedouble

The ending double value.

currentFrameint

The current frame number.

numFramesint

The total number of frames.

Returns:

double

The calculated double value for the current frame.

Calculates the current float value using easing interpolation.

C#
public abstract float CalculateCurrentValue(float initialValue, float endValue, int currentFrame, int numFrames)
Parameters:initialValuefloat

The starting float value.

endValuefloat

The ending float value.

currentFrameint

The current frame number.

numFramesint

The total number of frames.

Returns:

float

The calculated float value for the current frame.

Calculates the current integer value using easing interpolation.

C#
public abstract int CalculateCurrentValue(int initialValue, int endValue, int currentFrame, int numFrames)
Parameters:initialValueint

The starting integer value.

endValueint

The ending integer value.

currentFrameint

The current frame number.

numFramesint

The total number of frames.

Returns:

int

The calculated integer value for the current frame.