Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IUIAnimationPrimitiveInterpolation::AddCubic method

Adds a cubic polynomial segment that describes the shape of a transition curve to the animation function.

Syntax


HRESULT AddCubic(
  [in] UINT                 cDimension,
  [in] UI_ANIMATION_SECONDS beginOffset,
  [in] FLOAT                constantCoefficient,
  [in] FLOAT                linearCoefficient,
  [in] FLOAT                quadraticCoefficient,
  [in] FLOAT                cubicCoefficient
);

Parameters

cDimension [in]

The dimension in which to apply the new segment.

beginOffset [in]

The begin offset for the segment, where 0 corresponds to the start of the transition.

constantCoefficient [in]

The cubic polynomial constant coefficient.

linearCoefficient [in]

The cubic polynomial linear coefficient.

quadraticCoefficient [in]

The cubic polynomial quadratic coefficient.

cubicCoefficient [in]

The cubic polynomial cubic coefficient.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

This method will fail with an error code of UI_E_INVALID_PRIMITIVE if the start time is either less than 0 or less than the start time of a previous segment.

Requirements

Minimum supported client

Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationPrimitiveInterpolation is defined as BAB20D63-4361-45DA-A24F-AB8508846B5B

See also

IUIAnimationPrimitiveInterpolation

 

 

Show:
© 2017 Microsoft