Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.Chamf

Summary

Represents a cell in a Chamf.Grid. Each cell may be a square or an elongated hexagon.

Constructors

Chamf(int x, int y, Chamf.Tile subtile)
Constructor.

Instance methods

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

Instance properties

PointDRefer to the documentation for IHasSvgGeometry.Center.
IEnumerable<Link<Vertex>>Refer to the documentation for IHasSvgGeometry.Edges.
IEnumerable<Chamf>Refer to the documentation for INeighbor<Chamf>.Neighbors.
Chamf.Tile Specifies whether this cell is a square, a horizontal hexagon, or a vertical hexagon. The hexagons are above and to the left of the square with the same coordinates.
Vertex[] Returns the vertices along the perimeter of this Chamf, 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 Chamf grid.
Describes a vertex (gridline intersection) in a Chamf.Grid.