Pretend this happens over time (it would be slower to do in time so I just test it in "one time step"). The point starts at the center of the screen and moves to the right of the screen. Every time it passes a line, whether it is inside or outside is flipped (is originally outside). When it has reached the right side of the screen, it has passed some number of lines and if that number was odd the point is inside the polygon.
- "Passing a line" is actually whether or not the line representing the point to right edge intersected another line.
- It is very important that no lines of your object go beyond the right side of the screen. If they do, then you will have make the "bullet to right side of the screen" line longer.