Solved

# Image map Polygon Algorithm

Posted on 1999-01-22

I'm trying to write the function which tells me whether

an (x,y) point is in a certain polygon?

i already written ones for rectangle & circle but stuck on

the Poligon - the function looks like that:

pointInPolygon(File i_mapFile , double x, double y)

{}

i dont need you to write a code just a way or an algorithm

to find that (x,y) point is in or not the polygon.

a polygon is at least 3 points of lines that are connected togther (0,0)(100,50)(200,30) the first point should be the last and if its not so im adding another connecting point

but thats for another session!

Thanks,