QuaternionAnimation QML Type

PropertyAnimation詳細...

Import Statement: import QtQuick3D
Inherits:

PropertyAnimation

プロパティ

詳細説明

2つのquaternions の間のアニメーションを定義する特殊なPropertyAnimation

デフォルトでは、球面線形補間が使用されます。これは、type プロパティを設定することで、より高速だが精度の低い正規化線形補間に変更できます。

fromto プロパティでクォータニオンを直接指定する代わりに、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正規化線形補間。

© 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.