get Centroid
Returns a Point2D object that represents the center of mass of the given shape.
Return
a Point2D object that represents the center of mass of the given shape
Parameters
shape
Returns a Point2D object that represents the center of mass of the given shape.
a Point2D object that represents the center of mass of the given shape