This function determines whether or not two lines intersect. It depends on the is_clockwise() function to operate.