I’ve been thinking for a while and I can’t figure out a good way to find if a triangle intersects a rectangle in the way described in the picture above.
I was originally thinking I should interpolate between each of the vertices of the triangle and then check to see if any of the points in the interpolated values array were within the bounds of the rectangle.
My question would be, how can I do this more efficiently?