Finding the angle of an arc?

Hello, please excuse my crude drawing. I am looking to constrain the amount a circle rotates on the circumference of its parent circle. I have the center of both, and I already have a function that moves it around the angle with touch.

Reason being, I have two circles on the outside and I don’t want them overlapping.


1 Like


And then a bit of trigonometry.


Look at the reference for atan2

Hello @rkdnson,

Also consider:
Law of Cosines

They all worked!


Processing reference:


1 Like