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?

  • figured out. I don’t know how to delete a question - Andrey

0