Class
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:

cs-api-definition
public abstract class EasingCalculator

Inheritance: objectEasingCalculator

Derived Classes: StandardEasingCalculator

Constructors

EasingCalculator()

Declaration

cs-api-definition
protected EasingCalculator()

Methods

CalculateCurrentValue(double, double, int, int)

Calculates the current double value using easing interpolation.

Declaration

cs-api-definition
public abstract double CalculateCurrentValue(double initialValue, double endValue, int currentFrame, int numFrames)

Parameters

initialValue

double

The starting double value.

endValue

double

The ending double value.

currentFrame

int

The current frame number.

numFrames

int

The total number of frames.

Returns

double

The calculated double value for the current frame.

CalculateCurrentValue(float, float, int, int)

Calculates the current float value using easing interpolation.

Declaration

cs-api-definition
public abstract float CalculateCurrentValue(float initialValue, float endValue, int currentFrame, int numFrames)

Parameters

initialValue

float

The starting float value.

endValue

float

The ending float value.

currentFrame

int

The current frame number.

numFrames

int

The total number of frames.

Returns

float

The calculated float value for the current frame.

CalculateCurrentValue(int, int, int, int)

Calculates the current integer value using easing interpolation.

Declaration

cs-api-definition
public abstract int CalculateCurrentValue(int initialValue, int endValue, int currentFrame, int numFrames)

Parameters

initialValue

int

The starting integer value.

endValue

int

The ending integer value.

currentFrame

int

The current frame number.

numFrames

int

The total number of frames.

Returns

int

The calculated integer value for the current frame.