Matrix4x4 QML Type
Item 에 4x4 변환 행렬을 적용하는 방법을 제공합니다. 더 보기...
| Import Statement: | import QtQuick |
속성
- matrix : matrix4x4
상세 설명
Matrix4x4 유형은 4x4 행렬을 통해 Item 에 변환을 적용하는 방법을 제공합니다.
이 타입을 사용하면 4x4 행렬로 제공되는 단 하나의 변환을 통해 회전, 크기 조정, 평행 이동 및 전단을 조합할 수 있습니다.
다음 예제는 Rectangle을 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)
}
}속성 문서
matrix : matrix4x4
의 변환에 사용될 4x4 행렬 Item
© 2026 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.