Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.PentaCell

Summary

Represents a cell in a PentaCell.Grid consisting mostly of pentagons and a few thin rhombuses that fill the gaps.

Remarks

Represents a cell in a two-dimensional grid that is either a pentagon or a thin rhombus (PentaCell.IsRhombus). The cells are represented by a PentaCell.Level (innermost pentagon is Level 0, each subsequent layer grows outwards in all directions), an PentaCell.Element number and a PentaCell.Rotation. Since the structure has pentagonal symmetry, the PentaCell.Element property only counts one fifth of the elements in a layer, while the values 0–4 of PentaCell.Rotation are then used to create the 5 symmetric copies of those elements.

Constructors

PentaCell(int level, int element, int rotation, bool isRhombus)
Constructor.

Instance methods

boolRefer to the documentation for IEquatable<PentaCell>.Equals.
bool
Equals(object obj)
  • Overrides: object.Equals(object)
Refer to the documentation for object.Equals.
int
  • Overrides: object.GetHashCode()
Refer to the documentation for object.GetHashCode.
string
  • Overrides: object.ToString()
Refer to the documentation for object.ToString.

Static methods

IEnumerable<PentaCell>
Structure(int levels)
Returns a set of PentaCell cells that form a symmetric structure (actually a decagon if levels is large enough).

Instance properties

PointDRefer to the documentation for IHasSvgGeometry.Center.
IEnumerable<Link<Vertex>>Refer to the documentation for IHasSvgGeometry.Edges.
intIdentifies the element within one sector of a level in clockwise order.
boolSpecifies whether the cell is a pentagon (false) or a rhombus (true).
intDescribes at which level the cell is (outwards from the center).
IEnumerable<PentaCell>Refer to the documentation for INeighbor<PentaCell>.Neighbors.
intSpecifies which of the five sectors within a level contains this cell.
Vertex[]Returns the vertices along the perimeter of this PentaCell in clockwise order.

Nested types

Describes a 2D grid of pentagonal cells with thin rhombuses filling the gaps.