Intersection detection.