Export (0) Print
Expand All

IInertiaProcessor::InitialRadius property

The InitialRadius property specifies the distance from the edge of the target to its center before the object was changed.

This property is read/write.

Syntax


HRESULT put_InitialRadius(
  [in]  FLOAT radius
);

HRESULT get_InitialRadius(
  [out] FLOAT *radius
);

Property value

The initial distance from the edge of the target to its center.

Error codes

Returns S_OK on success; otherwise, returns an error code such as E_FAIL.

Remarks

If Inertia processing has already started, setting InitialRadius will reset the inertia engine to the initial state with new radius value applied.

Call this function to set initial state of inertia. You would call this function most likely during the ManipulationCompleted event of the IManipulationProcessor, or in the constructor of the IInertiaProcessor interface.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Manipulations.h (include Manipulations.h)

See also

Inertia Mechanics
Handling Inertia in Unmanaged Code
IInertiaProcessor
Properties

 

 

Community Additions

ADD
Show:
© 2015 Microsoft