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

Provides floating-point value animation calculations with precise interpolation.

Definition

Constructors

C#
public AnimationValueFloatCalculator()

Properties

Gets the type associated with this calculator.

C#
public override Type AssociatedType { get; }
Property Value:

The float type.

Overrides: AnimationValueCalculator.AssociatedType

Methods

Calculates the animated float value for the current frame.

C#
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters:startValueobject

The starting float value.

endValueobject

The ending float value.

currValueobject

The current float value.

stepobject

The animation step value.

currFrameNumint

The current frame number.

totalFrameNumint

The total number of frames.

calcEasingCalculator

The easing calculator.

Returns:

object

The calculated float value for the current frame.

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

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

C#
public override object CalculateAnimationEndValue(object animationStartValue, object step, int numFrames)
Parameters:animationStartValueobject

The starting float value.

stepobject

The float animation step.

numFramesint

The number of animation frames.

Returns:

object

The calculated end float value.

Overrides: AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

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

C#
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters:animationStartValueobject

The starting float value.

animationEndValueobject

The ending float value.

numFramesint

The number of animation frames.

Returns:

object

The calculated float animation step.

Overrides: AnimationValueCalculator.CalculateAnimationStep(object, object, int)

Calculates the inverse of a float animation step.

C#
public override object CalculateInversedStep(object step)
Parameters:stepobject

The float step to invert.

Returns:

object

The inverted float step.

Overrides: AnimationValueCalculator.CalculateInversedStep(object)