# Center of Mass of a Polygon

Center of Mass of a Polygon

Both the area and the various moments of a simple polygon can be written as simple functions of the coordinates of the vertices. These formulas can then be used to identify the center of mass of the polygon: . Move or add new locators and watch the center of mass move. Careful: if the polygon boundary intersects itself, the results are invalid!

{X,Y}={,}A

M

x

M

y