| SrtTransformInterpolate Method (SrtTransform, SrtTransform, Single) |
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 SrtTransform Interpolate(
SrtTransform startTransform,
SrtTransform endTransform,
float parameter
)
Public Shared Function Interpolate (
startTransform As SrtTransform,
endTransform As SrtTransform,
parameter As Single
) As SrtTransform
public:
static SrtTransform Interpolate(
SrtTransform startTransform,
SrtTransform endTransform,
float parameter
)
static member Interpolate :
startTransform : SrtTransform *
endTransform : SrtTransform *
parameter : float32 -> SrtTransform
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.
Return Value
Type:
SrtTransformAn interpolated SRT transform.
Remarks
All SRT components are interpolated using a linear interpolation (LERP). Spherical linear
interpolation (SLERP) is not used for quaternions.
See Also