About Matrix4x4 in QML
Unsolved
QML and Qt Quick
-
Hi, I am learning the Qt 3D module. I found the
Qt.matrix4x4
provide different API thanQMatrix4x4
in C++ side (by usingF1
check the API doc).
look likesQt.matrix4x4
don't have suchscale
orrotation
... operations. even not in autocomplete.
BUT! these functions do exist!var m = Qt.matrix4x4(1, 0, 0, -0.5, 0, 1, 0, 0, 0, 0, 1, 0.5, 0, 0, 0, 1) m.scale(2) console.log(m) // qml: QMatrix4x4(2, 0, 0, -0.5, 0, 2, 0, 0, 0, 0, 2, 0.5, 0, 0, 0, 1)
https://doc.qt.io/qt-5/qmatrix4x4.html vs https://doc.qt.io/qt-5/qml-matrix4x4.html
So Why??? And the type is
QMatrix4x4
...