Show / Hide Table of Contents

Class DualMappingExtensions

Inheritance
System.Object
DualMappingExtensions
Namespace: Sylves
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
Type Name Description
IDualMapping dm
Cell dualCell
Returns
Type Description
System.Collections.Generic.IEnumerable<System.ValueTuple<CellCorner, Cell, CellCorner>>

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
Type Name Description
IDualMapping dm
Cell baseCell
Returns
Type Description
System.Collections.Generic.IEnumerable<System.ValueTuple<CellCorner, Cell, CellCorner>>

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 Nullable<Cell> ToBaseCell(this IDualMapping dm, Cell dualCell, CellCorner corner)
Parameters
Type Name Description
IDualMapping dm
Cell dualCell
CellCorner corner
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
Type Name Description
IDualMapping dm
Cell baseCell
CellCorner corner
Returns
Type Description
System.Nullable<Cell>
In This Article
Back to top Generated by DocFX