intersection function

intersection of 2 objects (e.g., lines)