Layout

data class Layout(val orientation: Orientation = Orientation(), val size: Point = Point(), val origin: Point = Point())(source)

Represents the layout of a hexagonal grid. Read more: Redblobgames Layout Examples

Constructors

Link copied to clipboard
constructor(orientation: Orientation = Orientation(), size: Point = Point(), origin: Point = Point())

Properties

Link copied to clipboard

The orientation of the hexagonal grid.

Link copied to clipboard

The origin of the grid. (0, 0) is the center of (0, 0, 0) hexagon.

Link copied to clipboard
val size: Point

The size of the hexagons in the grid. Equal values for width and height indicate regular hexagons.