How to detect if two lines are intersecting?

Yes, sort of. This is called “picking.” You use a buffer, and you check a point or points to see if the value in the buffer matches. It doesn’t work as well or easily with lines as it does with closed shapes (circles, ellipses, rects, polygons, etc.) – it is better for testing the location of a mouse pointer than for line-line intersection.