For my CC23 entry, I need to check if a triangle is intersecting the rectangle that will be the player's hitbox...

I'm trying to find a relatively simple algorithm to handle this, given the coordinates of all the vertices.

The wikipedia article about line-line intersection looks like it would be helpful, but it is pretty complicated looking and confusing

And I'm also not sure how much sense this makes to me either...

Maybe I'm dumb, but is there an easier way to do this?

I'm trying to find a relatively simple algorithm to handle this, given the coordinates of all the vertices.

The wikipedia article about line-line intersection looks like it would be helpful, but it is pretty complicated looking and confusing

And I'm also not sure how much sense this makes to me either...

Maybe I'm dumb, but is there an easier way to do this?