Happy to know the Journeyometer is alive! Great, great tool.Glorelendil wrote:Update: I'm rewriting the whole thing. Well, lots of copying and pasting, but better to start with a clean slate than try to fix the current mess.
Thanks Glor.
Happy to know the Journeyometer is alive! Great, great tool.Glorelendil wrote:Update: I'm rewriting the whole thing. Well, lots of copying and pasting, but better to start with a clean slate than try to fix the current mess.
Let's see:Glorelendil wrote:For any computer scientists out there, I'm going to need an algorithm that, given a contiguous and closed sequence of coordinates in a hex-shaped grid, determines if a cell represented by a pair of coordinates is inside enclosed by the sequence. (In other words, if regions are defined by their borders, test whether a hex cell is inside that region.) It should be as zippy as possible, so that I can iterate through all regions querying which one(s) the cell is in.
Alternatively, given the border, generate the list of all additional cells that are enclosed within that border.
Users browsing this forum: No registered users and 3 guests