Crate lettuces

Source

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§

ColumnMeshBuilder
Builder struct to customize hex column mesh generation.
EdgeDirection
All 6 possible neighbor/edge directions in hexagonal space.
GridEdge
Hexagonal grid orientated edge representation
GridVertex
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.
InsetOptions
Insetting options for PlaneMeshBuilder and ColumnMeshBuilder used to create an insetted face on either hexagonal planes or quads
MeshInfo
Hexagonal mesh information.
PlaneMeshBuilder
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.
VertexDirection
All 6 possible diagonal/vertex directions in hexagonal space.

Enums§

DirectionWay
Describes a direction way, which can be a Single direction or a Tie betwen two directions.
DoubledHexMode
Layout mode for doubled coordinates conversion. See Hex::to_doubled_coordinates and Hex::from_doubled_coordinates.
HexOrientation
Hexagonal orientation, either Pointy-Topped or Flat-Topped
InsetScaleMode
InsetOptions mode, defining the inset scaling behaviour
OffsetHexMode
Layout mode for offset coordinates conversion. See Hex::to_offset_coordinates and Hex::from_offset_coordinates.

Traits§

HexIterExt
Extension trait for iterators of Hex

Functions§

hex
Instantiates a new hexagon from axial coordinates