Function Entity.moveFromTo

Starts a position tween from one point to another.

Tween* moveFromTo(
  dlib.math.vector.Vector!(float,3) pointFrom,
  dlib.math.vector.Vector!(float,3) pointTo,
  double duration,
  Easing easing = Easing.Linear
);

Parameters

NameDescription
pointFrom Starting position.
pointTo Ending position.
duration Duration in seconds.
easing Easing function (default: Linear).

Returns

Pointer to the tween.