Calculate the overall circle enclosing multiple smaller circles

136 Views Asked by At

I have multiple smaller circles of a fixed radius that I am using to define a larger enclosing circle. So I'll need to find the x and y and radius of this new circle.

I am looking for efficient over accuracy, as past the third smaller circle any enclosed smaller circle will not be used to calculate a new circle. So if a new circle is introduce like the yellow one, the large blue circle could be used to define a new enclosing circle.

I am after a x,y and radius. Thanks.

enter image description here