| SrtTransformInterpolate Method (SrtTransform, SrtTransform, Single, SrtTransform) |
Interpolates two SRT transforms.
Namespace: DigitalRune.Animation.CharacterAssembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public static void Interpolate(
ref SrtTransform startTransform,
ref SrtTransform endTransform,
float parameter,
ref SrtTransform result
)
Public Shared Sub Interpolate (
ByRef startTransform As SrtTransform,
ByRef endTransform As SrtTransform,
parameter As Single,
ByRef result As SrtTransform
)
public:
static void Interpolate(
SrtTransform% startTransform,
SrtTransform% endTransform,
float parameter,
SrtTransform% result
)
static member Interpolate :
startTransform : SrtTransform byref *
endTransform : SrtTransform byref *
parameter : float32 *
result : SrtTransform byref -> unit
Parameters
- startTransform
- Type: DigitalRune.Animation.CharacterSrtTransform
The start transform. - endTransform
- Type: DigitalRune.Animation.CharacterSrtTransform
The end transform. - parameter
- Type: SystemSingle
The interpolation parameter. If the value is 0, the startTransform is
returned. If the value is 1, the endTransform is returned. For values
between 0 and 1 an interpolated SrtTransform is returned.
- result
- Type: DigitalRune.Animation.CharacterSrtTransform
The interpolation result.
Remarks
All SRT components are interpolated using a linear interpolation (LERP). Spherical linear
interpolation (SLERP) is not used for quaternions.
See Also