Show / Hide Table of Contents

Class DualMappingExtensions

Inheritance
object
DualMappingExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Sylves
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
Type Name Description
IDualMapping dm
Cell dualCell
Returns
Type Description
IEnumerable<Cell>

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
Type Name Description
IDualMapping dm
Cell dualCell
Returns
Type Description
IEnumerable<(CellCorner corner, Cell dualCell, CellCorner inverseCorner)>

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
Type Name Description
IDualMapping dm
Cell baseCell
Returns
Type Description
IEnumerable<Cell>

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
Type Name Description
IDualMapping dm
Cell baseCell
Returns
Type Description
IEnumerable<(CellCorner corner, Cell dualCell, CellCorner inverseCorner)>

Reversed(IDualMapping)

Declaration
public static IDualMapping Reversed(this IDualMapping dualMapping)
Parameters
Type Name Description
IDualMapping dualMapping
Returns
Type Description
IDualMapping

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
Type Name Description
IDualMapping dm
Cell dualCell
CellCorner corner
Returns
Type Description
Cell?

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
Type Name Description
IDualMapping dm
Cell baseCell
CellCorner corner
Returns
Type Description
Cell?
In this article
Back to top Generated by DocFX