Skip to main content

Crate roguemetry

Crate roguemetry 

Source

Modules§

circles
cp437

Structs§

Point
Helper struct defining a 2D point in space.

Enums§

Direction
OneDimensionConvertError
OneDimensionalDirection

Constants§

DIR4
The four orthogonal directions, clockwise from North — the neighbours that share an edge with a tile rather than only a corner.
DIR8
DIR9
DIR2_EDGE_ONCE
The half of DIR4_OPPOSITE that visits every undirected orthogonal edge of a grid exactly once when swept over all tiles.
DIR4_OPPOSITE
Each orthogonal direction paired with the one that faces back at it, in DIR4 order.

Type Aliases§

Rect
Vec2