Generator.createHexagonGrid
doc comment / functionality missmatch
#10
Labels
Generator.createHexagonGrid
doc comment / functionality missmatch
#10
The comment for the
radius
parameter says0
will produce a single hexagon, but a value of0
actually throws anInvalidArgumentError
.I also think the doc comments for
GridShape
cases could use expanding, maybe with some examples. For instance, the.hexagon
case just says "radius", but I think it's more common to talk about regular hex grids by "side length" (which is of course "radius + 1"). At least I understand the meaning of radius, but I don't really understand what the.triangle
's "side size" parameter means, because it seems to produce a triangle with a side-size of one more than that. (For consistency?) Maybe the triangle parameter is actually a bug, I don't really know.The text was updated successfully, but these errors were encountered: