Original Post
now here is the problem...
i have a map... the map is implemented on a grid matrix (lets say, 200 by 200)
every square can have 3 values: me, empty, blocked
me - is the unit that wants to go from block a to block b
empty - a block that me can step in
blocked - a block that me cant step in
now i use a a path finding algorithm to find a path from a to b... it gives me back a list of blocks each block in the list is adjacent to next block in the list on the map...
meaning, if 5,5 is on the list the next node on the list can be one of the folowing:
5,4
4,5
5,6
6,5
6,6
4,4
4,6
6,4
now... I can divide the list into segments of a streight line... a streight line is defined as a line that is not bending in angle of over 18 degrees.
now... given a list like the one i described, i want to find out the begining and ending point of each segmant.
plz plz plz help me...
i am stuck on this problem for over a month now
if my explaination is not clear plz say so... i''ll try tomorrow to post a better one (with a picture example)