Precision test for discrete animateMotion with separated path fragments, mpath element, keyPoints, rotate=angle.

The main indication for a failed test is the appearence of the red fill of the markers or the red comparison. The circle has to jump exactly to the next marker, which is lightened for the time, the circle is above.

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.