HexMapLibrary
Public Member Functions | Private Attributes | List of all members
Wunderwunsch.HexMapLibrary.Generic.EdgeDataProvider< E > Class Template Reference

Public Member Functions

 EdgeDataProvider (Dictionary< Vector3Int, Edge< E >> edgesByPosition, EdgePositionProvider edgePositionProvider)
 
Edge< E > FromCartesianCoordinate (Vector3 cartesianCoordinate)
 returns the periodic edge of the input cartesian coordinate. returns null if outside of map bounds More...
 
Edge< E > BetweenNeighbouringCorners (Vector3Int cornerA, Vector3Int cornerB)
 returns the edge between the input corners More...
 
Edge< E > BetweenNeighbouringTiles (Vector3Int tileA, Vector3Int tileB)
 returns the edge coordinate between the input tiles More...
 

Private Attributes

Dictionary< Vector3Int, Edge< E > > edgesByPosition
 
EdgePositionProvider edgePositionProvider
 

Member Function Documentation

◆ FromCartesianCoordinate()

Edge<E> Wunderwunsch.HexMapLibrary.Generic.EdgeDataProvider< E >.FromCartesianCoordinate ( Vector3  cartesianCoordinate)

returns the periodic edge of the input cartesian coordinate. returns null if outside of map bounds

◆ BetweenNeighbouringCorners()

Edge<E> Wunderwunsch.HexMapLibrary.Generic.EdgeDataProvider< E >.BetweenNeighbouringCorners ( Vector3Int  cornerA,
Vector3Int  cornerB 
)

returns the edge between the input corners

◆ BetweenNeighbouringTiles()

Edge<E> Wunderwunsch.HexMapLibrary.Generic.EdgeDataProvider< E >.BetweenNeighbouringTiles ( Vector3Int  tileA,
Vector3Int  tileB 
)

returns the edge coordinate between the input tiles