I am using a SVGPath in an animation and I want to reset it in each frame. This would avoid creating a new SVGPath for every frame.
What I want to do is to reset it,so the previous moveTo() and curveTo() calls get removed from the SVGPath. How can I do that?

The previous moveTo() and curveTo() calls get aggregated on the SVGPath, when I don't create a new SVGPath object for each new frame. This results
in an extremely slow animation and only a cloud of messy lines are painted. Creating a new SVGPath object object for each new frame would also result in a slow animation.

Is it possible to remove the previous moveTo() and curveTo() calls from the SVGPath? This is my code, which is executed for each frame and every time the paint method is called:

q8.moveTo((float) (startposx8 + (double) ((30F * xpos) / 4F)
* Math.cos(tpos / 2.5D)),
(float) (startposy8 + (double) ((30F * xpos) / 4F)
* Math.sin(tpos / 2.5D)));
q8.quadTo(
(float) (startposx8 + (double) (oWidth / 4F)),
(float) (startposy8 + (double) (oHeigth / 4F)
* Math.cos(tpos / 2.5D)),
(float) (startposx8 + (double) (oWidth / 2.0F)),
(float) (startposy8 + (double) (oHeigth / 3F)));
q8.close();