Calculate center from the given point A