Class
AnimationValueFloatCalculator

Provides floating-point value animation calculations with precise interpolation.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class AnimationValueFloatCalculator : AnimationValueCalculator

Inheritance: objectAnimationValueCalculatorAnimationValueFloatCalculator

Inherited Members AnimationValueCalculator.ConvertAnimationStepToString(object)AnimationValueCalculator.ConvertToAnimationStepFromString(string)AnimationValueCalculator.CalculateIntStep(int, int, int)AnimationValueCalculator.CalculateIntStep(int, int, int, int, int)AnimationValueCalculator.CalculateFloatStep(float, float, int)AnimationValueCalculator.CalculateFloatStep(float, float, float, float, float)AnimationValueCalculator.CalculateDoubleStep(double, double, int)AnimationValueCalculator.CalculateDoubleStep(double, double, double, double, double)AnimationValueCalculator.CalculateFloatEndValue(float, float, int)AnimationValueCalculator.CalculateFloatEndValue(float, float, int, float, float)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int, double, double)AnimationValueCalculator.CalculateIntEndValue(int, int, int)AnimationValueCalculator.CalculateIntEndValue(int, int, int, int, int)

Constructors

AnimationValueFloatCalculator()

Declaration

cs-api-definition
public AnimationValueFloatCalculator()

Properties

AssociatedType

Gets the type associated with this calculator.

Declaration

cs-api-definition
public override Type AssociatedType { get; }

Property Value

Type

The float type.

Overrides AnimationValueCalculator.AssociatedType

Methods

CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

Calculates the animated float value for the current frame.

Declaration

cs-api-definition
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)

Parameters

startValue

object

The starting float value.

endValue

object

The ending float value.

currValue

object

The current float value.

step

object

The animation step value.

currFrameNum

int

The current frame number.

totalFrameNum

int

The total number of frames.

calc

EasingCalculator

The easing calculator.

Returns

object

The calculated float value for the current frame.

Overrides AnimationValueCalculator.CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

CalculateAnimationEndValue(object, object, int)

Calculates the end float value based on start value and animation step.

Declaration

cs-api-definition
public override object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)

Parameters

animationStartValue

object

The starting float value.

step

object

The float animation step.

numFrames

int

The number of animation frames.

Returns

object

The calculated end float value.

Overrides AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

CalculateAnimationStep(object, object, int)

Calculates the animation step needed to transition between two float values.

Declaration

cs-api-definition
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)

Parameters

animationStartValue

object

The starting float value.

animationEndValue

object

The ending float value.

numFrames

int

The number of animation frames.

Returns

object

The calculated float animation step.

Overrides AnimationValueCalculator.CalculateAnimationStep(object, object, int)

CalculateInversedStep(object)

Calculates the inverse of a float animation step.

Declaration

cs-api-definition
public override object CalculateInversedStep(object step)

Parameters

step

object

The float step to invert.

Returns

object

The inverted float step.

Overrides AnimationValueCalculator.CalculateInversedStep(object)