Added getCentroid()