Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Nested class: RT.Coordinates.CircularCell.Grid

Summary

Describes a grid of circular cells. Any number of cells can make a full circle, and there can be any number of circles of varying radius.

Constructors

Grid(IEnumerable<CircularCell> cells, IEnumerable<Link<CircularCell>> links = null, Func<CircularCell, IEnumerable<CircularCell>> getNeighbors = null)
See Structure<TCell>(IEnumerable<TCell>, IEnumerable<Link<TCell>>, Func<TCell, IEnumerable<TCell>>).
Grid(int[] divisionsPerRadius, CircleFraction[] offsets = null)
Constructs a circular grid by dividing each ring into a specified number of equal-sized cells.
Grid(int[][] sizesPerRadius, CircleFraction[] offsets = null)
Constructs a circular grid by dividing each ring into a number of cells of specified relative sizes.

Instance methods

voidAdds the specified cells to this structure.
void
AddCells(params CircularCell[] cells)
void
AddCells(IEnumerable<CircularCell> cells)
voidAdds the specified link to this structure.
voidAdds a link between the specified cells to this structure.
void
AddLinks(params Link<CircularCell>[] links)
Adds the specified links to this structure.
void
AddLinks(IEnumerable<Link<CircularCell>> links)
Structure<CombinedCell<CircularCell>>
CombineCells(params CircularCell[] cells)
Returns a new structure in which the specified set of cells is combined (merged) into a single cell. (see also remarks)
Structure<CombinedCell<CircularCell>>
CombineCells(IEnumerable<CircularCell> cells)
boolDetermines whether this structure contains the specified cell.
IEnumerable<CircularCell> Finds the shortest path from the specified from cell to the specified to cell.
Dictionary<CircularCell, CellWithDistance<CircularCell>> Finds the shortest path from the specified origin cell to every other cell in the structure.
Structure<CircularCell>
GenerateMaze(Random rnd = null, MazeBias bias = MazeBias.Default)
Generates a maze on this structure.
Structure<CircularCell>
GenerateMaze(Func<int, int, int> rndNext, MazeBias bias = MazeBias.Default)
boolDetermines whether the specified link is traversible.
boolDetermines whether a direct link between the specified cells exists in this structure and is traversible.
voidRemoves the specified cell from this structure.
void
RemoveCells(params CircularCell[] cells)
Removes the specified cells from this structure.
void
RemoveCells(IEnumerable<CircularCell> cells)
void
RemoveCells(Predicate<CircularCell> predicate)
Removes all cells from this structure that match the specified predicate.
voidRemoves the specified link from this structure.
void
RemoveLinks(params Link<CircularCell>[] links)
Removes the specified links from this structure.
void
RemoveLinks(IEnumerable<Link<CircularCell>> links)
void
RemoveLinks(Predicate<Link<CircularCell>> predicate)
string
Svg(SvgInstructions inf = null)
Returns an SVG file that visualizes this structure.

Instance properties

IEnumerable<CircularCell>Returns this structure’s full set of cells.
IEnumerable<Link<CircularCell>>Returns the full set of links between the cells in this structure.