Microsoft DirectX 9.0

ID3DXKeyFrameInterpolator Interface

This interface implements an interpolator.

ID3DXKeyFrameInterpolator Members

GetLastSRT Returns the previous scale, rotation, and translation values.
GetName Gets the name of the interpolator.
GetNumRotationKeys Returns the number of rotation key frames.
GetNumScaleKeys Returns the number of scale key frames.
GetNumTranslationKeys Returns the number of translation key frames.
GetPeriod Gets the interpolator period.
GetRotationKeys Returns an array of rotation values.
GetScaleKeys Returns an array of scale values.
GetSourceTicksPerSecond Returns the time scale factor passed to D3DXCreateKeyFrameInterpolator. This value is used to scale local time to global (or application) time.
GetSRT Returns the scale, rotation, and translation at a given time.
GetTranslationKeys Returns an array of translation vectors.


Interpolators are the basic building blocks for animation. Each interpolator defines the scale, rotate, and translation values at a unique point in time. Scale and rotation values are stored as vectors, rotations are stored as quaternions.

Interface Information

Inherits fromID3DXInterpolator
Import libraryd3dx9.lib
Minimum operating systems Windows 98

© 2002 Microsoft Corporation. All rights reserved.