Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.OctoCell

Summary

Represents a cell in an OctoCell.Grid. Each cell may be an octagon or a square.

Constructors

OctoCell(int x, int y, bool isSquare)
Constructor.

Instance methods

boolRefer to the documentation for IEquatable<OctoCell>.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<OctoCell>
Rectangle(int width, int height)
Returns a set of OctoCell cells that form a rectangle. Along the perimeter all the cells will be octagons. Only squares internal to these octagons are included.

Instance properties

PointDRefer to the documentation for IHasSvgGeometry.Center.
IEnumerable<Link<Vertex>>Refer to the documentation for IHasSvgGeometry.Edges.
bool Specifies whether this cell is a square or an octagon. If it is a square, it is south-east of the octagon with the same coordinates.
IEnumerable<OctoCell>Refer to the documentation for INeighbor<OctoCell>.Neighbors.
Vertex[] Returns the vertices along the perimeter of this OctoCell, going clockwise from the top-left (octagon) or top (square).
intX-coordinate of the cell.
intY-coordinate of the cell.

Nested types

Describes a 2D grid of octagonal cells with (diagonal) squares filling the gaps.
Describes a vertex (gridline intersection) in an OctoCell.Grid.