Find centerpoint of polygon in JavaScript Asked 12 years, 11 months ago Modified 4 years, 11 months ago Viewed 31k times
Now this will sort of do the opposite to the middle and actually help you ignore outliers in your point cloud and find a centerpoint based on the distribution of your points. A more and robust way to find a "good" centerpoint might be to ignore the top and bottom 10% in each dimension and then calculate the average or median.