added is_segment_crossing_triangle