このページでは

QuaternionAnimation QML Type

四元数用のPropertyAnimation 。詳細...

Import Statement: import QtQuick3D
Inherits:

PropertyAnimation

プロパティ

詳細な説明

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.