vector3d QML Basic Type

A vector3d type has x, y, and z attributes.

A vector3d 类型拥有 x , y ,和 z 属性。

要创建 vector3d value, specify it as a "x,y,z" string:

Rotation { angle: 60; axis: "0,1,0" }
					

or with the Qt.vector3d() function:

Rotation { angle: 60; axis: Qt.vector3d(0, 1, 0) }
					

or as separate x , y ,和 z components:

Rotation { angle: 60; axis.x: 0; axis.y: 1; axis.z: 0 }
					

另请参阅 QML 基本类型 .