Please refer to this image for this question->
I have a 3d bounded box (in green).
I also have a 3d line (in red)
I know the points a, b, c, d, e. They are points in space with x, y, z, coordinates.
I also know that a, b, c, d, and e, lie on the same plane. i.e. point a is the intersection between the plane of (b, c, d , e) with the red line.
The box is not axis aligned.
Now, what i want to know is, how can i calculate whether the point a, lies inside of (b, c, d, e) box? Obviously it doesn't in this case, but how can i calculate this?
They are on the same plane, so it should be a 2d problem, but all my coordinates are in 3d so i'm not sure how to do it. Can someone help?
This is not homework, i am doing some hobby game programming.