TileGridConfig
constructor(tileSize: Double = 1.0, originOffset: Point = Point.ORIGIN, elevation: (TileCoordinate) -> Double? = null)
Parameters
tileSize
World units per tile side. Must be positive and finite. Default 1.0.
originOffset
World position of the grid's (0, 0) corner. Default Point.ORIGIN.
elevation
Optional per-tile elevation function. Returns the z-coordinate of the tile surface for the given TileCoordinate. When null, all tiles sit at originOffset.z. Use for terrain height maps.
Note: elevation is excluded from equals and hashCode. Two configs with the same tileSize and originOffset compare equal regardless of their elevation functions. This is intentional — lambda literals do not have stable identity across recompositions, so including them would cause spurious inequality and unnecessary gesture-hub re-registration on every recomposition.