Share via


CInterpolatorBase::InterpolateVelocity

Interpolates the velocity at a given offset

IFACEMETHOD(
   InterpolateVelocity
)(__in UI_ANIMATION_SECONDS offset, __out DOUBLE *velocity);

Parameters

  • offset
    The offset from the start of the transition. The offset is always greater than or equal to zero and less than or equal to the duration of the transition. This method is not called if the duration of the transition is zero.

  • velocity
    Output. The velocity of the variable at the offset.

Return Value

If the method succeeds, it returns S_OK. It returns E_FAIL if CCustomInterpolator is not set, or custom implementation returns FALSE from the InterpolateVelocity method.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CInterpolatorBase Class