if (lastPoint instanceof BezierVertex){
BezierVertex lastBez = (BezierVertex)lastPoint;
Vertex lastConPointCopy = (Vertex)lastBez.getSecondCtrlPoint().getCopy();
//reflect the last controlpoint at the current point
lastConPointCopy.rotateZ(lastPoint, 180);
BezierVertex b = new BezierVertex(
lastConPointCopy.getX() , lastConPointCopy.getY(), 0,
lastPoint.getX() + x2, lastPoint.getY() + y2, 0,
lastPoint.getX() + x, lastPoint.getY() + y, 0);