Crate n18hex
Source - consts
- Constant values used to define, e.g., angles in radians.
- coord
- Cartesian coordinates for use with hex tiles.
- hex
- Hexagonal tiles, and attributes such as faces, corners, and colours.
- theme
- Define colours, line styles, and other drawing properties.
- Colour
- Defines colours for drawing strokes and fills.
- Coord
- Represents Cartesian coordinates as a struct with named fields.
- Hex
- The geometry of hexagonal tiles.
- Theme
- Defines all of the drawing properties used to draw hexagons, tiles, and
tile elements.
- Delta
- The direction and distance in which to translate a HexPosition, relative
to a reference point.
- Direction
- The different absolute directions in which a HexPosition can be
translated.
- HexColour
- The tile background colours for Hex.
- HexCorner
- The hexagon corners.
- HexFace
- The hexagon faces (edges).
- HexPosition
- Define specific positions within a hexagon, based on a reference point
and an optional translation in some direction.
- Orientation
- The different hexagon orientations that may be used to form a hexagonal
grid.
- RotateCW
- The six rotational symmetries of a hexagon, which change the orientation
of the hexagon faces.
- PI
- Archimedes’ constant (π)
- PI_1_4
- π/4
- PI_1_6
- π/6
- PI_2_6
- 2π/6
- PI_3_4
- 3π/4
- PI_3_6
- 3π/6 = 2π/4 = π/2
- PI_4_6
- 4π/6
- PI_5_6
- 5π/6