def getCenter(self):
    centerX = ((self.segmentBounds[0] + self.segmentBounds[2]) / 2)
    centerY = ((self.segmentBounds[1] + self.segmentBounds[3]) / 2)
    return (centerX, centerY)
def getCenter(self):
    centerX = ((self.segmentBounds[0] + self.segmentBounds[2]) / 2)
    centerY = ((self.segmentBounds[1] + self.segmentBounds[3]) / 2)
    return (centerX, centerY)