0
Circle c1 = new Circle(20); //Initialize
c1.relocate(200, 200); //Set coordinates

I will say right off the bat that I do not understand trigonometry. From what I've been able to find online, I need to use cos and sin + an angle, but I do not understand how to make it happen.

How do I make the circle rotate around a specific point? I want to have a gap of 5-10 pixels between the rotation point and the circle's layout. So visually, the circle will be rotating around a blank space of 5-10 pixels.

Code snippets will be greatly appreciated, as well as tutorials.

tshepang
  • 12,111
  • 21
  • 91
  • 136
Gregg1989
  • 675
  • 6
  • 14
  • 24

0 Answers0