HexMapLibrary
|
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 |
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
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