def get_intersections_with_segments(self):
if Real is float:<EOL><INDENT>return [<EOL>(p, [event.segment for event in event_set])<EOL>for p, event_set in self.intersections.items()<EOL>]<EOL><DEDENT>else:<EOL><INDENT>return [<EOL>(<EOL>(float(p[<NUM_LIT:0>]), float(p[<NUM_LIT:1>])),<EOL>[((float(event.segment[<NUM_LIT:0>][<NUM_LIT:0>]), float(event.segment[<NUM_LIT:0>][<NUM_LIT:1>])),<EOL>(float(event.segment[<NUM_LIT:1>][<NUM_LIT:0>]), float(event.segment[<NUM_LIT:1>][<NUM_LIT:1>])))<EOL>for event in event_set],<EOL>)<EOL>for p, event_set in self.intersections.items()<EOL>]<EOL><DEDENT>
Return a list of unordered intersection '(point, segment)' pairs,
where segments may contain 2 or more values.