getAxes for rect and circle