Expand description
Geometric types for 2D lattice-shaped puzzles.
Structs§
- CellId
- An ID identifying a cell in lattice rectangle.
- Move
- A difference between two
Point
s. - Point
- A two-dimensional lattice point.
- Points
- An iterator iterating all points in the rectangle.
- Points
InColumn - An iterator iterating all points in a column of the rectangle.
- Points
InRow - 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
vectors that is toward eight adjacent points.- MOVE_
ALL_ DIRECTIONS Move
vectors that is toward four adjacent points.- MOVE_
DOWN - A downward
Move
vector. - MOVE_
LEFT - A leftward
Move
vector. - MOVE_
RIGHT - A rightward
Move
vector. - MOVE_UP
- An upward
Move
vector. - ROT_
CCW0 - A 0-degree
Rotation
to the left (counterclockwise). - ROT_
CCW90 - A 90-degree
Rotation
to the left (counterclockwise). - ROT_
CCW180 - A 180-degree
Rotation
to the left (counterclockwise). - ROT_
CCW270 - A 270-degree
Rotation
to the left (counterclockwise). - ROT_
H_ FLIP - Flip horizontal.
- ROT_
V_ FLIP - Flip vertical.
Traits§
- Geom
- A rectangle area.