[][src]Crate gridly_adapters

Adapters for gridly grids. These adapters are designed to wrap other to provide things like translation and transposition.

Structs

Translate

Grid adapter that translates the locations of the wrapped grid. The translation is added to the inner grid location; that is, if the inner grid has a root at (0, 0), and the translation is (2, 3), the new root will be (2, 3).

Transpose

Grid adapter that transposes the row & column of the wrapped grid. This is a diagonal reflection through (0, 0).

Window

Grid adapter that views a subset of the wrapped grid, using the same coordinate system. For instance, given this grid:

ZeroRoot

Grid adapter that translates the locations of the wrapped grid such that the root is always (0, 0). Useful when combined with Window.