Maybe project the x/y coordinates onto a unit sphere, then find the center of mass in spherical coordinates, then convert those spherical coordinates to the relevant 2d coordinate system you're using, discarding the radius (but keeping it for the information it provides).