vector3d QML Basic Type

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

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

To create a 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, and z components:

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

See also QML Basic Types.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.