def METHOD_NAME(self, new_centroid):
    size = self.size
    self.left = new_centroid[0] - size[0] / 2
    self.right = new_centroid[0] + size[0] / 2
    self.top = new_centroid[1] - size[1] / 2
    self.bottom = new_centroid[1] + size[1] / 2