Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.Snubquad

Summary

Represents a cell in a Snubquad.Grid. Each cell may be a square or a triangle, which are all slightly tilted.

Constructors

Snubquad(int x, int y, Snubquad.Tile subtile)

Represents a cell in a Snubquad.Grid. Each cell may be a square or a triangle, which are all slightly tilted.

Instance methods

boolRefer to the documentation for IEquatable<Snubquad>.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<Snubquad>
Rectangle(int width, int height)
Returns a set of Snubquad cells that form a rectangle consisting of width×height×6 cells.

Instance properties

PointDRefer to the documentation for IHasSvgGeometry.Center.
IEnumerable<Edge>Refer to the documentation for IHasSvgGeometry.Edges.
IEnumerable<Snubquad>Refer to the documentation for INeighbor<Snubquad>.Neighbors.
Snubquad.TileSpecifies which of the six subtiles this cell is.
Vertex[] Returns the vertices along the perimeter of this Snubquad, going clockwise from the top-left (square or horizontal hex) or top (vertical hex).
intX-coordinate of the cell.
intY-coordinate of the cell.

Nested types

Describes a 2D grid of square cells surrounded by hexagonal cells. Looks a bit like a 7-segment display.
Identifies one of the three types of tiles in a Snubquad grid.
Describes a vertex (gridline intersection) in a Snubquad.Grid. (see also remarks)