Class DualMappingExtensions
Inheritance
System.Object
DualMappingExtensions
Assembly: Sylves.dll
Syntax
public static class DualMappingExtensions : Object
Methods
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, Cell, CellCorner)> BaseNeighbours(this IDualMapping dm, Cell dualCell)
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, Cell, CellCorner)> 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 Nullable<Cell> ToBaseCell(this IDualMapping dm, Cell dualCell, CellCorner corner)
Parameters
Returns
Type |
Description |
System.Nullable<Cell> |
|
ToDualCell(IDualMapping, Cell, CellCorner)
Finds the corresponding dual cell to a corner of a base cell.
Declaration
public static Nullable<Cell> ToDualCell(this IDualMapping dm, Cell baseCell, CellCorner corner)
Parameters
Returns
Type |
Description |
System.Nullable<Cell> |
|