Whether multiple points make up for a circle? [closed]
If I have e.g. 20 points, how can i check to see if those points make up for a circle? It doesnt have to be a perfect circle. For example if I store the coordinates of my mouse every 200ms (as the user moves the mouse), I want to see if the user makes a circle gesture. And I cant expect the user to make a perfect circle. I'd do the following; Compute a best fit circle through the points Calculate a residual for each point (the join distance from the centre to the point minus the best fit circle radius) Accept the result if a large enough percentage of the residuals were below a certain value