getEquivalentRectangularSize

fun getEquivalentRectangularSize(size: Int, ratio: Float = 0.65f): Vector2

returns a vector containing width and height a rectangular map should have to have approximately the same number of tiles as an hexagonal map given a height/width ratio

Sources

jvm source
Link copied to clipboard