Export (0) Print
Expand All

IManipulationProcessor::GetAngularVelocity method

The GetAngularVelocity method calculates the rotational velocity that the target object is moving at.

Syntax


HRESULT GetAngularVelocity(
  [out] FLOAT *pAngularVelocity
);

Parameters

pAngularVelocity [out]

The calculated rotational velocity.

Return value

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

Remarks

This value is useful when you are setting up the initial state of the IInertiaProcessor interface. You should pass this value when the manipulation completes.

This property is expressed in radians per millisecond if explicit timestamps are not specified by using calls to ProcessMoveWithTime, ProcessMoveWithTime, and ProcessUpWithTime. Otherwise, this function uses radians per user defined time units.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Manipulations.h (include Manipulations_i.c)

See also

InitialAngularVelocity
IManipulationProcessor
Methods

 

 

Community Additions

ADD
Show:
© 2015 Microsoft