task3 triangle intersects line