Class
StandardEasingCalculator

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:

cs-api-definition
public class StandardEasingCalculator : EasingCalculator

Inheritance: objectEasingCalculatorStandardEasingCalculator

Constructors

StandardEasingCalculator()

Initializes a new instance of the StandardEasingCalculator class.

Declaration

cs-api-definition
public StandardEasingCalculator()

StandardEasingCalculator(RadEasingType)

Initializes a new instance of the StandardEasingCalculator class with the specified easing type.

Declaration

cs-api-definition
public StandardEasingCalculator(RadEasingType easingType)

Parameters

easingType

RadEasingType

The type of easing function to use.

Properties

EasingType

Gets or sets the type of easing function to apply.

Declaration

cs-api-definition
public RadEasingType EasingType { get; set; }

Property Value

RadEasingType

The easing type that determines the animation curve.

Methods

CalculateCurrentValue(double, double, int, int)

Calculates the current double value using easing interpolation.

Declaration

cs-api-definition
public override 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.

Overrides EasingCalculator.CalculateCurrentValue(double, double, int, int)

CalculateCurrentValue(float, float, int, int)

Calculates the current float value using easing interpolation.

Declaration

cs-api-definition
public override 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.

Overrides EasingCalculator.CalculateCurrentValue(float, float, int, int)

CalculateCurrentValue(int, int, int, int)

Calculates the current integer value using easing interpolation.

Declaration

cs-api-definition
public override 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.

Overrides EasingCalculator.CalculateCurrentValue(int, int, int, int)