Given the coordinates of a polygon, I found many algorithms to detect if a point is in a polygon - for example: [1] and [2]. But none of these algorithms are able to detect if the point lies on the vertices of this polygon. For example I have a polygon:
|---------------------|
| |
| |
|---------------------|
My point is in the right upper corner. I want an algorithm that tells me whether the point is inside the polygon. How can I do this?