I've been looking around for an algorithm that could tell me if a point is inside a box, but I still haven't found what I'm looking for.
Basically I have a 2D rectangle [Upper_X, Lower_X, Upper_Y and Lower_Y]
which is translated and rotated in a 3D world (I've got both world and orientation matrixes), I want to build up a box from this rectangle (in order to considerate some kind of epsilon margin while checking) and check if a point P is inside it.
How can I accomplish this? I'm really sorry, please be patient I'm not very good in algebra and geometry stuff so just write a c++ example code it would be easier for me to understand it.