Function getCenterForElement

Gets the center point for a DucElement.