C# code for best-fit circle
I would like C# code for determining the centre and radius of the circle that best fits the points in an array using the least squares method or equivalent.

Having searched on web I've found none.
C# code for best-fit circle
===

I would like C# code for determining the centre and radius of the circle that best fits the points in an array using the least squares method or equivalent.

Having searched on web I've found none.