5#include <QtQuick/private/qquickanimation_p_p.h>
65 d->interpolatorType = qMetaTypeId<QQuaternion>();
66 d->defaultToInterpolatorType =
true;
153 return d->anglesFrom.x();
159 if (
d->anglesFrom.x() ==
f)
161 d->anglesFrom.setX(
f);
177 return d->anglesFrom.y();
183 if (
d->anglesFrom.y() ==
f)
185 d->anglesFrom.setY(
f);
201 return d->anglesFrom.z();
207 if (
d->anglesFrom.z() ==
f)
209 d->anglesFrom.setZ(
f);
225 return d->anglesTo.x();
231 if (
d->anglesTo.x() ==
f)
249 return d->anglesTo.y();
255 if (
d->anglesTo.y() ==
f)
273 return d->anglesTo.z();
279 if (
d->anglesTo.z() ==
f)
The QQuaternion class represents a quaternion consisting of a vector and scalar.
static QQuaternion fromEulerAngles(const QVector3D &eulerAngles)
static QQuaternion slerp(const QQuaternion &q1, const QQuaternion &q2, float t)
Interpolates along the shortest spherical path between the rotational positions q1 and q2.
static QQuaternion nlerp(const QQuaternion &q1, const QQuaternion &q2, float t)
Interpolates along the shortest linear path between the rotational positions q1 and q2.
\qmltype QuaternionAnimation \inherits PropertyAnimation \inqmlmodule QtQuick3D
QQuick3DQuaternionAnimationPrivate()
QQuick3DQuaternionAnimation::Type type
void toXRotationChanged(float value)
QQuick3DQuaternionAnimation(QObject *parent=nullptr)
void typeChanged(QQuick3DQuaternionAnimation::Type type)
void setFromYRotation(float f)
void setToXRotation(float f)
void toZRotationChanged(float value)
void setToZRotation(float f)
void fromZRotationChanged(float value)
void toYRotationChanged(float value)
void setTo(const QQuaternion &t)
void fromXRotationChanged(float value)
void setFromXRotation(float f)
void fromYRotationChanged(float value)
void setFromZRotation(float f)
void setToYRotation(float f)
void setFrom(const QQuaternion &f)
void setFrom(const QVariant &)
void setTo(const QVariant &)
static Q_CORE_EXPORT QVariantAnimation::Interpolator getInterpolator(int interpolationType)
QVariant(* Interpolator)(const void *from, const void *to, qreal progress)
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
The QVector3D class represents a vector or vertex in 3D space.
Combined button and popup list for selecting options.
QVariant q_quaternionInterpolator(const QQuaternion &from, const QQuaternion &to, qreal progress)
QVariant q_quaternionNlerpInterpolator(const QQuaternion &from, const QQuaternion &to, qreal progress)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent