Partager via


CInterpolatorBase::SetInitialValueAndVelocity

Sets the interpolator's initial value and velocity.

IFACEMETHOD(
   SetInitialValueAndVelocity
)(__in DOUBLE initialValue, __in DOUBLE initialVelocity);

Parameters

  • initialValue
    The value of the variable at the start of the transition.

  • initialVelocity
    The velocity of the variable at the start of the transition.

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 SetInitialValueAndVelocity method.

Requirements

Header: afxanimationcontroller.h

See Also

Reference

CInterpolatorBase Class