Search Results for

    Show / Hide Table of Contents

    Class CellPair

    Represents the start and end cell of a path.

    Inheritance
    Object
    CellPair
    Implements
    IHeapItem<CellPair>
    IComparable<CellPair>
    Namespace: Global
    Assembly: cs.temp.dll.dll
    Syntax
    public class CellPair : IHeapItem<CellPair>

    Constructors

    CellPair(Cell, Cell, Int32)

    Constructor for the CellPair. Distance is optional.

    Declaration
    public CellPair(Cell startCell, Cell endCell, int distance = 0)
    Parameters
    Type Name Description
    Cell startCell

    The start cell of the path.

    Cell endCell

    The end cell of the path.

    Int32 distance

    The distance between the start and end cells.

    Fields

    endCell

    The end cell of the path.

    Declaration
    public readonly Cell endCell
    Field Value
    Type Description
    Cell

    startCell

    The start cell of the path.

    Declaration
    public readonly Cell startCell
    Field Value
    Type Description
    Cell

    Properties

    HeapIndex

    Getter and setter for the heap index.

    Declaration
    public int HeapIndex { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    CompareTo(CellPair)

    Used to order the CellPairs in the heap based on the lowest distance first.

    Declaration
    public int CompareTo(CellPair otherCell)
    Parameters
    Type Name Description
    CellPair otherCell

    The cell to compare to.

    Returns
    Type Description
    Int32

    Implements

    IHeapItem<T>
    IComparable<>
    In This Article
    Back to top Project documentation