HexMapLibrary
Public Member Functions | Private Attributes | List of all members
Wunderwunsch.HexMapLibrary.MapDistanceCalculatorTile Class Reference

Public Member Functions

 MapDistanceCalculatorTile (CoordinateWrapper coordinateWrapper)
 
int Grid (Vector3Int tileA, Vector3Int tileB)
 returns the manhattan Distance between tileA and tileB or in other words how many edges you need to cross when moving from tileA to tileB accounting for map wrapping More...
 
float Euclidean (Vector3Int tileA, Vector3Int tileB)
 returns the euclidian distance of a straight line from the center of tileA to the center of tileB accounting for map wrapping More...
 

Private Attributes

CoordinateWrapper coordinateWrapper
 

Member Function Documentation

◆ Grid()

int Wunderwunsch.HexMapLibrary.MapDistanceCalculatorTile.Grid ( Vector3Int  tileA,
Vector3Int  tileB 
)

returns the manhattan Distance between tileA and tileB or in other words how many edges you need to cross when moving from tileA to tileB accounting for map wrapping

◆ Euclidean()

float Wunderwunsch.HexMapLibrary.MapDistanceCalculatorTile.Euclidean ( Vector3Int  tileA,
Vector3Int  tileB 
)

returns the euclidian distance of a straight line from the center of tileA to the center of tileB accounting for map wrapping