Sorry, I have a lot of problems with the wording of this question.
I am fixated on a data structure (or a combination of data structures) that I must use to preserve the arrangement of polygons bordering each other (for example, any real-world map).
I have to clarify: I want to make the point move at a fixed speed through the map (landscape) of these polygons. The whole landscape is covered with polygons - the space is not classified; each point on the map belongs to a certain polygon. This means that all polygons on all sides border either another polygon or the edge of the map. The map is limited, but ideally it doesnβt matter how big the map is or how many polygons are represented. Each polygon has a name (this is important, since each point now belongs to at least two named polygons). A point moving along a map should always know the name of the polygon in which it is located, and the point should also be notified whenever it crosses a border from one polygon to another. (if any other explanation is needed, please comment.)
Is there an acceptable way to do this?
- EDIT -
Polygons are fixed. All points and edges must be precoded. Points and edges will never change unpredictably or randomly (if they change at all, it will be in response to a non-continuous fixed event).
source share