using circle line intersection as algebraic solver