Calculating Center Of Mass In An Unbounded 2d Environment