| SingleTraitsInterpolate Method |
Performs a linear interpolation between two animation values.
Namespace: DigitalRune.Animation.TraitsAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public void Interpolate(
ref float source,
ref float target,
float parameter,
ref float result
)
Public Sub Interpolate (
ByRef source As Single,
ByRef target As Single,
parameter As Single,
ByRef result As Single
)
public:
virtual void Interpolate(
float% source,
float% target,
float parameter,
float% result
) sealed
abstract Interpolate :
source : float32 byref *
target : float32 byref *
parameter : float32 *
result : float32 byref -> unit
override Interpolate :
source : float32 byref *
target : float32 byref *
parameter : float32 *
result : float32 byref -> unit
Parameters
- source
- Type: SystemSingle
In: The source value. - target
- Type: SystemSingle
In: The target value. - parameter
- Type: SystemSingle
The interpolation parameter; also known as interpolation factor or weight of the
target value.
- result
- Type: SystemSingle
Out: The result of the interpolation.
Implements
IAnimationValueTraitsTInterpolate(T, T, Single, T)See Also