void rotate(Canvas canvas,double cx,double cy,double angle) { canvas.translate(cx, cy); canvas.rotate(angle); canvas.translate(-cx, -cy); }