Get the centroid or geometric center of a plane figure (the arithmetic mean position of all the points in the figure). Informally, it is the point at which a cutout of the shape could be perfectly balanced on the tip of a pin.
An array of Vector2Like objects to get the geometric center of.
A Point object to store the output coordinates in. If not given, a new Point instance is created.
A Point object representing the geometric center of the given points.