Crate board_game_geom [−] [src]
Geometric types for 2D latticeshaped puzzles.
Structs
CellId 
An ID identifying a cell in lattice rectangle. 
Move 
A difference between two 
Point 
A twodimensional lattice point. 
Points 
An iterator iterating all points in the rectangle. 
PointsInColumn 
An iterator iterating all points in a column of the rectangle. 
PointsInRow 
An iterator iterating all points in a row of the rectangle. 
Rotation 
A 2x2 rotation matrix. 
Size 
A size of a rectangle. 
Table 
A table that stores values for each cells. 
Constants
CELL_ID_OUTSIDE 
An ID being given to cells on outside the rectangle. 
MOVE_ALL_ADJACENTS 

MOVE_ALL_DIRECTIONS 

MOVE_DOWN 
A downward 
MOVE_LEFT 
A leftward 
MOVE_RIGHT 
A rightward 
MOVE_UP 
An upward 
ROT_CCW0 
A 0degree 
ROT_CCW180 
A 180degree 
ROT_CCW270 
A 270degree 
ROT_CCW90 
A 90degree 
ROT_H_FLIP 
Flip horizontal. 
ROT_V_FLIP 
Flip vertical. 
Traits
Geom 
A rectangle area. 