fananek / hex-grid

HexGrid library provides easy and intuitive way of working with hexagonal grids.
MIT License
45 stars 8 forks source link

Return ring cells in order by using Array<> instead of Set<> #5

Closed andoco closed 4 years ago

andoco commented 4 years ago

Preserves the order of the cells in the ring allowing it to be used for traversing the ring cells in order.

fananek commented 4 years ago

Thanks for proposal but Set is used intentionally. Mainly because of major performance difference but also because uniqueness of elements is guaranteed in Set.