Expand description

Geometric types for 2D lattice-shaped puzzles.

Structs

An ID identifying a cell in lattice rectangle.

A difference between two Points.

A two-dimensional lattice point.

An iterator iterating all points in the rectangle.

An iterator iterating all points in a column of the rectangle.

An iterator iterating all points in a row of the rectangle.

A 2x2 rotation matrix.

A size of a rectangle.

A table that stores values for each cells.

Constants

An ID being given to cells on outside the rectangle.

Move vectors that is toward eight adjacent points.

Move vectors that is toward four adjacent points.

A downward Move vector.

A leftward Move vector.

A rightward Move vector.

An upward Move vector.

A 0-degree Rotation to the left (counterclockwise).

A 90-degree Rotation to the left (counterclockwise).

A 180-degree Rotation to the left (counterclockwise).

A 270-degree Rotation to the left (counterclockwise).

Flip horizontal.

Flip vertical.

Traits

A rectangle area.