Function Entity.rotateFromTo

Starts a rotation tween from one set of angles to another.

Tween* rotateFromTo(
  dlib.math.vector.Vector!(float,3) anglesFrom,
  dlib.math.vector.Vector!(float,3) anglesTo,
  double duration,
  Easing easing = Easing.Linear
);

Parameters

NameDescription
anglesFrom Starting angles (degrees).
anglesTo Ending angles (degrees).
duration Duration in seconds.
easing Easing function (default: Linear).

Returns

Pointer to the tween.