W,A,S & D + arrows keys to move the box. Mouse cursor to move the point. If the box turns green, the point is inside it!
All of this is my own code, I tested this algorithm in scratch before implementing it into another project.