On the Calculation of Moments of Polygons