Classes
- Cell
-
Represents single position in a grid
- HexGrid
-
HexGrid is an entry point of the package. It represents a grid of hexagonal cells
Structures
- InvalidArgumentsError
- Attribute
-
A type-erased
Codable
value. - AttributeDecodable
-
A type-erased
Decodable
value. - AttributeEncodable
-
A type-erased
Encodable
value. - AxialCoordinates
-
Represents coordinates in Axial format using q, r axis. q - you can imagine as a column r - you can imagine as a row
- CubeCoordinates
-
Represents coordinates in Cube format using x, y and z axis
- CubeFractionalCoordinates
-
Represents coordinates in Cube format using x, y and z axis
- OffsetCoordinates
-
Represents coordinates in Offset format using column and row.
- HexSize
- Point
Enumerations
- Direction
-
Enumeration for direction
- Direction.Flat
-
⬣ - flat side on top of a hexagon individual cases correspond to common cardinal directions (
east
andwest
directions are not available for flat on top orientation) - Direction.Pointy
-
⬢ - pointy side on top of a hexagon individual cases correspond to common cardinal directions (
north
andsouth
directions are not available for pointy on top orientation) - GridShape
-
Enumeration for hexagonal grid shapes
- OffsetLayout
-
Enumeration for hexagonal grid offset layout
- Orientation
-
Enumeration for hexagon orientation
- Rotation
-
Rotation Enumeration for hexagonal grid shapes