So, I have a rectangle divided into two triangles and I have a point:
I know the coordinates of the four vertices of the rectangle (A, B, C and D) and I know the coordinates of P. What I need to know is in which of the two triangles is the point.
I think it's a really simple thing to do, but apparently I can't figure it out by myself.
Any help?