Intersection of two circles in two dimensions