I've seen similar questions but could not solve my problem with those. My question is how to detect an intersection of a line segment and a triangle on a 2D coordinate system? I don't need the point of intersection, I just quickly need to decide whether the segment cuts into the triangle or not.
The Line segment is represented by two points, S (Sx,Sy). The triangle is represented by 3 points, T (T1x,T1y, T2x,T2y, T3x,T3y)
Your help is appreciated.