Finding the centroid of a polygon?
问题 To get the center, I have tried, for each vertex, to add to the total, divide by the number of vertices. I\'ve also tried to find the topmost, bottommost -> get midpoint... find leftmost, rightmost, find the midpoint. Both of these did not return the perfect center because I\'m relying on the center to scale a polygon. I want to scale my polygons, so I may put a border around them. What is the best way to find the centroid of a polygon given that the polygon may be concave, convex and have