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 基本類型 .