HKeyframeChannelLinear
-
class
HKeyframeChannelLinear The
HKeyframeChannelLinearclass is used for linear interpolation of positional values.Inherits from:
HKeyframeChannel
Methods
-
HKeyframeChannelLinear::HKeyframeChannelLinear(float x = 0, float y = 0, float z = 0) Constructs a
HKeyframeChannelLinearobject.
-
virtual
HKeyframeChannelLinear::~HKeyframeChannelLinear() virtual
-
virtual HKeyframe *
HKeyframeChannelLinear::Clone() virtual
This method makes an exact copy of the current
HKeyframeChannelLinearand returns a pointer to the newly createdHKeyframeChannelLinearobject.Returns
A pointer to newly createdHKeyframeChannelLinearobject.
-
virtual void
HKeyframeChannelLinear::Interpolate(HKeyframeChannel const *posarray[], int keyframe, float fraction, int length, HPoint &res) virtual
Calculates the interpolation between this keyframe and the next keyframe.
Parameters
posarray: The array of
HKeyframeChannelobjects.keyframe: They current keyframe number.
fraction: The fraction from this keyframe to next.
length: The number of entries in the keyframe array.
res: Returns the interpolation result.
-
virtual void
HKeyframeChannelLinear::Serialize(HUtilityXMLTag *xmlgen) virtual
Writes XML data to a buffer.