discrete keyPoints animateMotion
A discrete animateMotion with keyPoints of a blue stroked square with a centered
circle is compared with a values animateMotion of a red square
with a centered circle.
The motion of the red square is the same as the motion of
the blue square, because the timing is choosen in such a way.
Therefore the blue square covers always the red one
completely.
The path is given in gray. The red fill of the circle
is always covered with the gray path.
Eight gray stroked markers are lightened, when the circle
is exactly above the marker. The red fill of the marker
is exactly covered by the blue stroked circle.
If something red gets visible, an error is occured
and the animateMotion is wrong.
The exact timing is calculated using an analytical
integration of the path length of the sub paths
(this is available for quadratic or linear curves).
With this method the path position can be
determined as function of the usual
parametrisation of the used Bézier curves.
marker
red: discrete values animateMotion
blue: animateMotion calcMode discrete using mpath and keyTimes