In a map app I have a grid with tiles defined with tile numbers indicating the column and row (X and Y).
I then have an irregular shape, consisting of a set of these tiles. I do have a list (or a map) of the edge tiles,
so excluding the tiles that are not at the border of this shape.
To give a...