Crate n18hex[][src]

Modules

Constant values used to define, e.g., angles in radians.

Cartesian coordinates for use with hex tiles.

Hexagonal tiles, and attributes such as faces, corners, and colours.

Define colours, line styles, and other drawing properties.

Structs

Defines colours for drawing strokes and fills.

Represents Cartesian coordinates as a struct with named fields.

The geometry of hexagonal tiles.

Defines all of the drawing properties used to draw hexagons, tiles, and tile elements.

Enums

The direction and distance in which to translate a HexPosition, relative to a reference point.

The different absolute directions in which a HexPosition can be translated.

The tile background colours for Hex.

The hexagon corners.

The hexagon faces (edges).

Define specific positions within a hexagon, based on a reference point and an optional translation in some direction.

The different hexagon orientations that may be used to form a hexagonal grid.

The six rotational symmetries of a hexagon, which change the orientation of the hexagon faces.

Constants

Archimedes’ constant (π)

π/4

π/6

2π/6

3π/4

3π/6 = 2π/4 = π/2

4π/6

5π/6