Finding the center of mass in relation to the origin in millimeters