About Matrix4x4 in QML
-
Hi, I am learning the Qt 3D module. I found the
Qt.matrix4x4provide different API thanQMatrix4x4in C++ side (by usingF1check the API doc).
look likesQt.matrix4x4don't have suchscaleorrotation... 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...