QuaternionAnimation QML Type
| Import Statement: | import QtQuick3D |
| Inherits: |
プロパティ
- from : quaternion
- fromXRotation : real
- fromYRotation : real
- fromZRotation : real
- to : quaternion
- toXRotation : real
- toYRotation : real
- toZRotation : real
- type : enumeration
詳細説明
2つのquaternions の間のアニメーションを定義する特殊なPropertyAnimation 。
デフォルトでは、球面線形補間が使用されます。これは、type プロパティを設定することで、より高速だが精度の低い正規化線形補間に変更できます。
from とto プロパティでクォータニオンを直接指定する代わりに、fromXRotation,toXRotation,fromYRotation,toYRotation,fromZRotation,toZRotation プロパティでオイラー角を度単位で指定することも可能です。
注: クォータニオンとオイラー角ベースのプロパティの混在は避けてください。fromとtoの値は、クォータニオンか3つのオイラー角で完全に指定されることが期待されます。
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.