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

Copyright (c) Amy de Buitléir 2012-2017 BSD-style amy@nualeargais.ie experimental portable Safe Haskell2010

Math.Geometry.Grid.Square

Description

A regular arrangement of square tiles. The userguide, with illustrations, is available at https://github.com/mhwombat/grid/wiki. Also see Math.Geometry.Grid for examples of how to use this class.

Synopsis

# Unbounded grid with square tiles

An unbounded grid with square tiles. The grid and its indexing scheme are illustrated in the user guide, available at https://github.com/mhwombat/grid/wiki.

Constructors

 UnboundedSquareGrid
Instances
 Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Typestype Rep UnboundedSquareGrid :: Type -> Type # Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Types Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Rep UnboundedSquareGrid = D1 (MetaData "UnboundedSquareGrid" "Math.Geometry.Grid.SquareInternal" "grid-7.8.12-1ADrZUlWO0vHdPyzqP6MYM" False) (C1 (MetaCons "UnboundedSquareGrid" PrefixI False) (U1 :: Type -> Type)) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Index UnboundedSquareGrid = (Int, Int) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal

# Rectangular grid with square tiles

A rectangular grid with square tiles. The grid and its indexing scheme are illustrated in the user guide, available at https://github.com/mhwombat/grid/wiki.

Instances
 Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal MethodsshowList :: [RectSquareGrid] -> ShowS # Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Typestype Rep RectSquareGrid :: Type -> Type # Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Types Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Types Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Rep RectSquareGrid = D1 (MetaData "RectSquareGrid" "Math.Geometry.Grid.SquareInternal" "grid-7.8.12-1ADrZUlWO0vHdPyzqP6MYM" False) (C1 (MetaCons "RectSquareGrid" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Int, Int)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(Int, Int)]))) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Size RectSquareGrid = (Int, Int) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Index RectSquareGrid = (Int, Int) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal

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.

# Toroidal grid with square tiles

A toroidal grid with square tiles. The grid and its indexing scheme are illustrated in the user guide, available at https://github.com/mhwombat/grid/wiki.

Instances
 Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal MethodsshowList :: [TorSquareGrid] -> ShowS # Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Typestype Rep TorSquareGrid :: Type -> Type # Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Types Methods Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal Associated Types Methods type Rep TorSquareGrid Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Rep TorSquareGrid = D1 (MetaData "TorSquareGrid" "Math.Geometry.Grid.SquareInternal" "grid-7.8.12-1ADrZUlWO0vHdPyzqP6MYM" False) (C1 (MetaCons "TorSquareGrid" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Int, Int)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [(Int, Int)]))) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Size TorSquareGrid = (Int, Int) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal type Index TorSquareGrid = (Int, Int) Source # Instance detailsDefined in Math.Geometry.Grid.SquareInternal

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.