1 /*! \page animation-rotation Rotation with quaternions
3 * \ref Dali::Quaternion "Quaternions" are used to specify unique orientations on actors. They are also
4 * very useful for calculating smooth transitions between orientations.
6 * The Dali::Actor class provides the ability to set the orientation
7 * by both angle+axis and quaternion. It also allows you to rotate the
8 * actor around another quaternion.
12 * actor.SetOrientation(Quaternion(Radian(Degree(45.0f)).value, Vector3::XAXIS)),
14 * Quaternion q(Radian(Degree(30.0f)).value, Vector3(1.0f, 1.0f, 0.0f));
18 * The Dali::Animation class provides several AnimateTo methods that
19 * use \ref Dali::Quaternion "Quaternions" directly to change the orientation.
22 * mAnimation = Animation::New(5.0f); // 5 seconds
23 * Quaternion q(Radian(Degree(45.0f)).value, Vector3::YAXIS);
24 * Quaternion r(Radian(Degree(30.0f)).value, Vector3::ZAXIS);
26 * mAnimation.AnimateTo(Property(mActor, Actor::Property::ORIENTATION), q, AlphaFunction::EASE_IN_OUT);