Class DualMappingExtensions
Inheritance
DualMappingExtensions
Assembly: Sylves.dll
Syntax
public static class DualMappingExtensions
Methods
BaseNeighbourCells(IDualMapping, Cell)
Finds all base cells that correspond to some corner of the dual cell.
Declaration
public static IEnumerable<Cell> BaseNeighbourCells(this IDualMapping dm, Cell dualCell)
Parameters
Returns
BaseNeighbours(IDualMapping, Cell)
Finds all base cells that correspond to some corner of the dual cell, and returns the corners and pairs.
Declaration
public static IEnumerable<(CellCorner corner, Cell baseCell, CellCorner inverseCorner)> BaseNeighbours(this IDualMapping dm, Cell dualCell)
Parameters
Returns
DualNeighbourCells(IDualMapping, Cell)
Finds all dual cells that correspond to some corner of the base cell;
Declaration
public static IEnumerable<Cell> DualNeighbourCells(this IDualMapping dm, Cell baseCell)
Parameters
Returns
DualNeighbours(IDualMapping, Cell)
Finds all dual cells that correspond to some corner of the base cell, and returns the corners and pairs.
Declaration
public static IEnumerable<(CellCorner corner, Cell dualCell, CellCorner inverseCorner)> DualNeighbours(this IDualMapping dm, Cell baseCell)
Parameters
Returns
Reversed(IDualMapping)
Declaration
public static IDualMapping Reversed(this IDualMapping dualMapping)
Parameters
Returns
ToBaseCell(IDualMapping, Cell, CellCorner)
Finds the corresponding base cell to a corner of a dual cell.
Declaration
public static Cell? ToBaseCell(this IDualMapping dm, Cell dualCell, CellCorner corner)
Parameters
Returns
ToDualCell(IDualMapping, Cell, CellCorner)
Finds the corresponding dual cell to a corner of a base cell.
Declaration
public static Cell? ToDualCell(this IDualMapping dm, Cell baseCell, CellCorner corner)
Parameters
Returns