Returns a Point2D object that represents the center of mass of the given point array which represents a polygon.
Returns a Point2D object that represents the center of mass of the given shape.