Matrix4x4 QML Type
4x4 변환 행렬을 Item...에 적용하는 방법을 제공합니다.. ..
Import Statement: | import QtQuick |
속성
- matrix : matrix4x4
상세 설명
Matrix4x4 유형은 4x4 매트릭스를 통해 Item 에 변환을 적용하는 방법을 제공합니다.
4x4 매트릭스에 제공되는 단 하나의 변환을 사용하여 회전, 배율, 이동 및 전단을 조합할 수 있습니다.
다음 예제는 직사각형 45 디그레스(PI/4)를 회전하는 예제입니다:
Rectangle { width: 100 height: 100 color: "red" transform: Matrix4x4 { property real a: Math.PI / 4 matrix: Qt.matrix4x4(Math.cos(a), -Math.sin(a), 0, 0, Math.sin(a), Math.cos(a), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) } }
속성 문서
© 2025 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.