How to move a shape in a given direction? That is, there is a shape that has a certain length, “step” and you need to move it in a given direction. I g.rotate(Math.toRadians(angle),x,y) shape with g.rotate(Math.toRadians(angle),x,y) .
How to continue to use the coordinates of the shape to correctly move the shape in the right direction?