Moved all content from intersections.cpp to intersections.h.