IManipulationProcessor::GetAngularVelocity 方法 (manipulations.h)

GetAngularVelocity 方法计算目标对象移动的旋转速度。

语法

HRESULT GetAngularVelocity(
  [out] FLOAT *angularVelocity
);

parameters

[out] angularVelocity

计算的旋转速度。

返回值

返回成功 时S_OK ,否则返回错误代码,如 E_FAIL

注解

在设置 IInertiaProcessor 接口的初始状态时,此值非常有用。 操作完成后,应传递此值。

如果未使用调用 ProcessMoveWithTime、ProcessMoveWithTimeProcessUpWithTime 指定显式时间戳,则此属性以每毫秒弧度表示。 否则,此函数使用用户定义的时间单位的弧度。

要求

   
最低受支持的客户端 Windows 7 [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 R2 [仅限桌面应用]
目标平台 Windows
标头 manipulations.h (包括 Manipulations_i.c)

另请参阅

IManipulationProcessor

InitialAngularVelocity

方法