condition of tangency for circle