added getCenterDirection() API method