The centroid is the average of the XY coordinates of the vertices that define a polygon.