1

我认为以下第一个说明了我们希望放置图像的坐标系中的点。正确的?

另一个用外行人的话说到底是什么?

http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qml-rotation.html#axis.x-prop

axis.x : real

axis.y : real

axis.z : real

The axis to rotate around. For simple (2D) rotation around a point, you do not need to specify an axis, as the default axis is the z axis (axis { x: 0; y: 0; z: 1 }).

origin.x : real

origin.y : real

The origin point of the rotation (i.e., the point that stays fixed relative to the parent as the rest of the item rotates). By default the origin is 0, 0.
4

1 回答 1

1

不正确。

第一个是要旋转的轴。X 是水平轴 = 从上到下对观看者进行旋转。Y 是垂直轴 = 旋转将是从左到右的查看器形式。Z(默认值)垂直于另一个 2 轴并指向查看器 = 因此围绕 Z 的旋转是在屏幕平面上旋转。

在第一个参数中,您只需告诉要围绕哪些轴旋转。所以axis(x:0; y:0; z:1)只是意味着在屏幕平面上旋转。

第二个是原点坐标。这是要旋转的轴坐标系的 0/0/0 所在的固定点。如果这是对象的左上角,您将围绕该角旋转。您可以旋转到任何固定点,这也意味着:除中心点之外的固定点将始终移动您的对象。

于 2013-10-15T06:36:23.270 回答