Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.1.0.0 (1.1.0.9503)
Syntax
| C# |
|---|
public class QuaternionFFromToByAnimation : FromToByAnimation<QuaternionF> |
| Visual Basic |
|---|
Public Class QuaternionFFromToByAnimation _ Inherits FromToByAnimation(Of QuaternionF) |
| Visual C++ |
|---|
public ref class QuaternionFFromToByAnimation : public FromToByAnimation<QuaternionF> |
Remarks
This type of animation changes a value from, to, or by a certain value depending on the properties set:
| Properties Specified | Resulting Behavior |
|---|---|
| From and To | The animation interpolates between the value specified by From and the value specified by To. |
| From and By | The animation interpolates between the value specified by From and the sum of the values specified by From and By. |
| From | The animation interpolates between the value specified by From and the default source value (see parameters of GetValue(TimeSpan, T%, T%, T%)). When an IAnimatableProperty is animated this means that the From value is animated towards the output of the previous animation. If there is no previous animation, then the From value is animated towards the base value of the property. |
| To | The animation interpolates from the default source value (see parameters of GetValue(TimeSpan, T%, T%, T%)) to the value specified by To. When an IAnimatableProperty is animated this means that the output of the previous animation is animated towards the To value. If there is no previous animation, then the base value of the property is animated towards the To value. |
| By | The animation interpolates from the default source value (see parameters of GetValue(TimeSpan, T%, T%, T%)) to the sum of this value plus the value specified by By. When an IAnimatableProperty is animated this means that the output of the previous animation is animated towards the sum of the this value plus the By value. If there is no previous animation, then the base value of the property is animated towards the sum of the base value plus the By value. |
| No properties set | The animation interpolates between the default source value to the default target value (see parameters of GetValue(TimeSpan, T%, T%, T%)). When an IAnimatableProperty is animated this means that the previous animation's output value is animated towards the base value of the property. |
If both To and By are specified, the By value will be ignored.
The property Duration specifies the period of time over which the interpolation takes place.
By default, the animation interpolates linearly between the specified values. An easing function (see property EasingFunction) can be applied to control the pace of the transition.
The property IsAdditive can be set to add the output of the animation to the property that is being animated. Note that the animation needs to be fully defined to be additive. A from/to/by animation is fully defined if either From and To or From and By are set. The result is undefined if the animation is only partially defined (either the start or the final value is missing)!
Inheritance Hierarchy
DigitalRune.Animation..::..Animation<(Of <(<'QuaternionF>)>)>
DigitalRune.Animation..::..FromToByAnimation<(Of <(<'QuaternionF>)>)>
DigitalRune.Animation..::..QuaternionFFromToByAnimation