calcCenterOfMass

fun calcCenterOfMass(points: Array<Point2D>): Point2D

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

Return

a Point2D object that represents the center of mass of the given point array

Parameters

points