How to detect if two lines are intersecting?

I meant circle. Sorry for confusion