get the ne and sw coordinates for rectangle and circle