| Vector3FAnimationGetValueCore Method |
Evaluates the animation function at the specified animation time.
Namespace: DigitalRune.AnimationAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax protected override void GetValueCore(
TimeSpan time,
ref Vector3F defaultSource,
ref Vector3F defaultTarget,
ref Vector3F result
)
Protected Overrides Sub GetValueCore (
time As TimeSpan,
ByRef defaultSource As Vector3F,
ByRef defaultTarget As Vector3F,
ByRef result As Vector3F
)
protected:
virtual void GetValueCore(
TimeSpan time,
Vector3F% defaultSource,
Vector3F% defaultTarget,
Vector3F% result
) override
abstract GetValueCore :
time : TimeSpan *
defaultSource : Vector3F byref *
defaultTarget : Vector3F byref *
result : Vector3F byref -> unit
override GetValueCore :
time : TimeSpan *
defaultSource : Vector3F byref *
defaultTarget : Vector3F byref *
result : Vector3F byref -> unit
Parameters
- time
- Type: SystemTimeSpan
The animation time. - defaultSource
- Type: DigitalRune.Mathematics.AlgebraVector3F
In: The source value that should be used by the animation if the animation does not have its
own source value.
- defaultTarget
- Type: DigitalRune.Mathematics.AlgebraVector3F
In: The target value that should be used by the animation if the animation does not have its
own target value.
- result
- Type: DigitalRune.Mathematics.AlgebraVector3F
Out: The value of the animation at the given time.
Remarks
The method GetValueCore(TimeSpan, T, T, T) implements the animation function. It is called
automatically by GetValue(TimeSpan, T, T, T) to compute the current animation value.
Note that the parameters are passed by reference. defaultSource and
defaultTarget are input parameters. The resulting animation value is
stored in result.
The values of the defaultSource and the defaultTarget
parameter depends on where the animation is used. If the animation is used to animate an
IAnimatablePropertyT then the values depend on the position of the animation
in the composition chain:
-
If the animation has replaced another animation using
SnapshotAndReplace: defaultSource is
the last output value of the animation which was replaced and
defaultTarget is the base value of the animated property.
-
If the animation is the first in an animation composition chain:
defaultSource and defaultTarget are the base value of
the animated property.
-
If the animation is not the first in an animation composition chain:
defaultSource is the output of the previous stage in the composition
chain and defaultTarget is the base value of the animated property.
Notes to Inheritors: The sole purpose of this method is to evaluate the
animation function at the given time. All other tasks (handling of additive animations,
animation blending) are automatically handled by the base class.
The parameter time contains the local time of the animation. (Any
parameters such as Delay, Duration,
Speed, or LoopBehavior have already
been applied.)
See Also