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.
IEnumerable<Vertex> Returns the vertices along the perimeter of this Snubquad, going clockwise from the top (square or up-pointing tri) or top-left (down-pointing tri).
IEnumerable<Vertex>
Vertices(int dx, int dy, int dw, int dh)
Returns the vertices along the perimeter of this Snubquad assuming that we’re rendering a rectangle positioned at (dx/2, dy/2) and of size dw/2 × dh/2 and we want the edges of the rectangle straightened. (see also remarks)

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.
IEnumerable<Snubquad>
Rectangle(int dx, int dy, int dw, int dh)
Returns a set of Snubquad cells that form a rectangle positioned at (dx/2, dy/2) and of size dw/2 × dh/2. (see also remarks)

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.
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)