QuaternionAnimation QML Type
쿼터니언용 PropertyAnimation. 더 보기...
| Import Statement: | import QtQuick3D |
| Inherits: |
속성
- from : quaternion
- fromXRotation : real
- fromYRotation : real
- fromZRotation : real
- to : quaternion
- toXRotation : real
- toYRotation : real
- toZRotation : real
- type : enumeration
상세 설명
두 개의 ` quaternions` 사이의 애니메이션을 정의하는 특수한 ` PropertyAnimation `입니다.
기본적으로 구형 선형 보간법이 사용됩니다. type 속성을 설정하여 더 빠르지만 정확도는 다소 떨어지는 정규화된 선형 보간법으로 변경할 수 있습니다.
from 및 to 속성에 쿼터니언을 직접 지정하는 대신, fromXRotation, toXRotation, fromYRotation, toYRotation, fromZRotation, toZRotation 속성에 도(degree) 단위의 오일러 각도를 지정할 수도 있습니다.
참고: 쿼터니언 기반 속성과 오일러 각도 기반 속성을 혼용하지마십시오 . from 및 to 값은 쿼터니언 또는 세 개의 오일러 각도 중 하나로 완전히 지정되어야 합니다.
Qt Quick, QQuaternion, QQuaternion::slerp() 및 QQuaternion::nlerp()의 ‘애니메이션 및 전환’항목도 참조하십시오 .
속성 문서
from : quaternion
이 속성은 애니메이션의 시작 값을 저장합니다.
fromXRotation : real
이 속성은 X축에 대한 애니메이션의 시작 값을 도(°) 단위의 오일러 각도로 저장합니다.
fromYRotation : real
이 속성은 Y축에 대한 애니메이션의 시작 값을 도(°) 단위의 오일러 각도로 저장합니다.
fromZRotation : real
이 속성은 Z축 애니메이션의 시작 값을 도 단위의 오일러 각도로 저장합니다.
to : quaternion
이 속성은 애니메이션의 종료 값을 저장합니다.
toXRotation : real
이 속성은 X축 애니메이션의 종료 값을 도 단위의 오일러 각도로 저장합니다.
toYRotation : real
이 속성은 Y축 애니메이션의 최종 값을 도(°) 단위의 오일러 각도로 저장합니다.
toZRotation : real
이 속성은 Z축 애니메이션의 종료 값을 도(°) 단위의 오일러 각도로 저장합니다.
type : enumeration
이 속성은 보간 모드를 정의합니다.
| 상수 | 설명 |
|---|---|
QuaternionAnimation.Slerp | 구면 선형 보간. |
QuaternionAnimation.Nlerp | 정규화된 선형 보간. |
© 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.