grid-7.8.5: Tools for working with regular grids (graphs, lattices).

Copyright(c) Amy de Buitléir 2012-2015
LicenseBSD-style
Maintaineramy@nualeargais.ie
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Math.Geometry.Grid.SquareInternal

Description

A module containing private SquareGrid internals. Most developers should use SquareGrid instead. This module is subject to change without notice.

Synopsis

Documentation

rectSquareGrid :: Int -> Int -> RectSquareGrid Source

rectSquareGrid r c produces a rectangular grid with r rows and c columns, using square tiles. If r and c are both nonnegative, the resulting grid will have r*c tiles. Otherwise, the resulting grid will be null and the list of indices will be null.

torSquareGrid :: Int -> Int -> TorSquareGrid Source

torSquareGrid r c returns a toroidal grid with r rows and c columns, using square tiles. If r and c are both nonnegative, the resulting grid will have r*c tiles. Otherwise, the resulting grid will be null and the list of indices will be null.