Modules§
- algorithms
- Non exhaustive collection of classic algorithms.
- bounds
- Hexagonal range bounds module
- cell
- conversions
- Hexagonal coordinates conversion module
- direction
- Hexagonal directions module
- hex
- Hexagonal coordinates module
- layout
- Hexagonal layout module
- mesh
- Mesh generation utils module
- orientation
- Hexagon oritentation module
- shapes
- Map shapes generation functions
- storage
Macros§
- grid
- Init a grid with values.
Structs§
- Column
Mesh Builder - Builder struct to customize hex column mesh generation.
- Edge
Direction - All 6 possible neighbor/edge directions in hexagonal space.
- Grid
Edge - Hexagonal grid orientated edge representation
- Grid
Vertex - Hexagonal grid orientated vertex representation.
- Hex
- Hexagonal axial coordinates
- HexBounds
- Hexagonal bounds utils, represented as a center and radius.
This type can be defined manually or from a
Hex
iterator. - HexLayout
- Hexagonal layout. This type is the bridge between your world/pixel coordinate system and the hexagonal coordinate system.
- IVec2
- A 2-dimensional vector.
- IVec3
- A 3-dimensional vector.
- Inset
Options - Insetting options for
PlaneMeshBuilder
andColumnMeshBuilder
used to create an insetted face on either hexagonal planes or quads - Mesh
Info - Hexagonal mesh information.
- Plane
Mesh Builder - Builder struct to customize hex plane mesh generation.
- Quat
- A quaternion representing an orientation.
- Rect
- 2D rect, with remapping utilities
- UVOptions
- Struct containing options for UV mapping.
- Vec2
- A 2-dimensional vector.
- Vec3
- A 3-dimensional vector.
- Vertex
Direction - All 6 possible diagonal/vertex directions in hexagonal space.
Enums§
- Direction
Way - Describes a direction way, which can be a
Single
direction or aTie
betwen two directions. - Doubled
HexMode - Layout mode for doubled coordinates conversion. See
Hex::to_doubled_coordinates
andHex::from_doubled_coordinates
. - HexOrientation
- Hexagonal orientation, either Pointy-Topped or Flat-Topped
- Inset
Scale Mode InsetOptions
mode, defining the inset scaling behaviour- Offset
HexMode - Layout mode for offset coordinates conversion. See
Hex::to_offset_coordinates
andHex::from_offset_coordinates
.
Traits§
- HexIter
Ext - Extension trait for iterators of
Hex
Functions§
- hex
- Instantiates a new hexagon from axial coordinates