IManipulationProcessor::GetAngularVelocity method (manipulations.h)

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

Syntax

HRESULT GetAngularVelocity(
  [out] FLOAT *angularVelocity
);

Parameters

[out] angularVelocity

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

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header manipulations.h (include Manipulations_i.c)

See also

IManipulationProcessor

InitialAngularVelocity

Methods