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.

Thanks!

1 Like

Hello,

https://mathworld.wolfram.com/Circle-CircleIntersection.html

And then a bit of trigonometry.

:)

Look at the reference for atan2

Hello @rkdnson,

Also consider:
IsoscelesTriangle
Law of Cosines

They all worked!

image

Processing reference:
https://processing.org/reference/acos_.html

:)

1 Like