Crate grid_area

Source
Expand description

A library for manipulating 2d grids

Grids are given as vecs of rows which are vecs of cells

Enums§

Direction
One of the four cardinal directions
Neighborhood
Neighborhoods around a point. They do not contain the point itself
Topology
A type of topology

Functions§

adjacent_cell
Get the adjacent point to a point in a given direction
is_corner
Is a given point a corner of a grid
is_edge
Is a given point on an edge of a grid
neighborhood
Returns an iterator over the points in a neighborhood around a point
points
Returns an iterator over the points of a grid