Show / Hide Table of Contents

Interface IDualMapping

Namespace: Sylves
Assembly: Sylves.dll
Syntax
public interface IDualMapping

Properties

BaseGrid

The grid this mapping was constructed from.

Declaration
IGrid BaseGrid { get; }
Property Value
Type Description
IGrid

DualGrid

The dual grid to map to.

Declaration
IGrid DualGrid { get; }
Property Value
Type Description
IGrid

Methods

ToBasePair(Cell, CellCorner)

Finds the corresponding base cell to a corner of a dual cell, and the corner of the base cell that returns back.

Declaration
Nullable<(Cell, CellCorner)> ToBasePair(Cell dualCell, CellCorner corner)
Parameters
Type Name Description
Cell dualCell
CellCorner corner
Returns
Type Description
System.Nullable<System.ValueTuple<Cell, CellCorner>>

ToDualPair(Cell, CellCorner)

Finds the corresponding dual cell to a corner of a base cell, and the corner of the dual cell that returns back.

Declaration
Nullable<(Cell, CellCorner)> ToDualPair(Cell baseCell, CellCorner corner)
Parameters
Type Name Description
Cell baseCell
CellCorner corner
Returns
Type Description
System.Nullable<System.ValueTuple<Cell, CellCorner>>

Extension Methods

DualMappingExtensions.ToDualCell(IDualMapping, Cell, CellCorner)
DualMappingExtensions.ToBaseCell(IDualMapping, Cell, CellCorner)
DualMappingExtensions.DualNeighbours(IDualMapping, Cell)
DualMappingExtensions.BaseNeighbours(IDualMapping, Cell)
DualMappingExtensions.Reversed(IDualMapping)
In This Article
Back to top Generated by DocFX