The Center of Mass (center of gravity) of a solid is similar to
the Centroid of Solid. However, calculating the centroid
involves only the geometrical shape of the solid. The center of
gravity will equal to the centroid if the body is homogenous
i.e. constant density. Integration formulas for calculating the
Center of Mass are: