> For the complete documentation index, see [llms.txt](https://changkun.gitbook.io/leapmotion_v2_cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changkun.gitbook.io/leapmotion_v2_cn/yu-yan/cpp/shi-yong-zhui-zong-api/leap_motions.md).

# 运动

LeapMotion 软件分析了从先前帧开始发生的全部运动，综合了典型的平移、旋转及缩放因子。例如，如果你同时移动两只手向左，那么 LeapMotion 视野所在镇则会包含平移。如果你旋转双手像捧一个球一样，那么帧就会包含旋转。如果你移动双手靠拢或彼此远离则会包含缩放。

LeapMotion 软件分析运动以及在[Frame](/leapmotion_v2_cn/yu-yan/cpp/api-can-kao/leap.frame.md)返回运动因子时，会使用视野内的全部对象。如果只能检测到一只手，那么 LeapMotion 软件会在这只手的移动中求出帧的运动因子。你也可以在每个[Hand](/leapmotion_v2_cn/yu-yan/cpp/api-can-kao/leap.hand.md)对象中中获得独立的运动因子。

运动是由比较当前帧的特殊的早期帧推导得出。

## 运动的类型

LeapMotion API 提供了以下几种类型的运动：

* 平移 —— 三维的线性移动
* 缩放 —— 相对膨胀或收缩
* 旋转 —— 三维的角度变换

你可以使用运动因子在你的应用场景来操作对象，而不必在多个帧中追踪单独的手和手指。

## 运动属性

你可以从[Frame](/leapmotion_v2_cn/yu-yan/cpp/api-can-kao/leap.frame.md)和[Hand](/leapmotion_v2_cn/yu-yan/cpp/api-can-kao/leap.hand.md)对象来获取运动因子。所描述的运动属性包括：

* 旋转轴 —— 表示旋转轴的方向向量
* 旋转角 —— 旋转轴顺时针方向的旋转角（使用右手定则）
* 旋转矩阵 —— 表示旋转的变换矩阵
* 缩放因子 —— 表示扩展或收缩的因子
* 平移 —— 表示线性移动的向量
