Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.CellWithDistance<TCell>

Summary

Encapsulates a cell and its distance from an origin cell within a structure.

Generic type parameters

TCell Type of cell (e.g., Square, Hex or Tri).

Remarks

Used in the return value of Structure<TCell>.FindPaths(TCell).

Constructors

CellWithDistance<TCell>(TCell cell, TCell parent, int distance)
Constructor.

Instance methods

void
Deconstruct(out TCell parent, out int distance)
Deconstructor.
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.

Instance properties

TCellThe relevant cell.
int The amount of steps required to reach this cell from the origin cell. If this is 0, this cell is the origin cell.
TCell The previous cell in the path from the origin cell to this cell. (see also remarks)