Get all possible neighbour coordinates

前端 未结 0 1006
后悔当初
后悔当初 2020-12-21 02:28

I represented a 3D coordinate with a tuple of type (Int, Int, Int)

To get the direct neighbours of a coordinate I did something like this :

相关标签:
回答
  • 消灭零回复
提交回复
热议问题