HexMapLibrary
Static Public Member Functions | List of all members
Wunderwunsch.HexMapLibrary.HexGrid.GetDistance Class Reference

Static Public Member Functions

static int BetweenTiles (Vector3Int tileA, Vector3Int tileB)
 returns the tile-distance of the 2 input tiles More...
 
static float BetweenTilesEuclidean (Vector3Int tileA, Vector3Int tileB)
 returns the euclidean distance of the 2 input tiles. More...
 
static int BetweenEdges (Vector3Int edgeA, Vector3Int edgeB)
 returns the edge-distance of the 2 inpute edges More...
 
static float BetweenEdgesEuclidean (Vector3Int edgeA, Vector3Int edgeB)
 returns the euclidean distance between the midpoints of both input edges More...
 
static int BetweenCorners (Vector3Int cornerA, Vector3Int cornerB)
 returns the corner-distance between both input corners More...
 
static float BetweenCornersEuclidean (Vector3Int cornerA, Vector3Int cornerB)
 returns the euclidean distance between both input corners More...
 

Member Function Documentation

◆ BetweenTiles()

static int Wunderwunsch.HexMapLibrary.HexGrid.GetDistance.BetweenTiles ( Vector3Int  tileA,
Vector3Int  tileB 
)
static

returns the tile-distance of the 2 input tiles

◆ BetweenTilesEuclidean()

static float Wunderwunsch.HexMapLibrary.HexGrid.GetDistance.BetweenTilesEuclidean ( Vector3Int  tileA,
Vector3Int  tileB 
)
static

returns the euclidean distance of the 2 input tiles.

◆ BetweenEdges()

static int Wunderwunsch.HexMapLibrary.HexGrid.GetDistance.BetweenEdges ( Vector3Int  edgeA,
Vector3Int  edgeB 
)
static

returns the edge-distance of the 2 inpute edges

◆ BetweenEdgesEuclidean()

static float Wunderwunsch.HexMapLibrary.HexGrid.GetDistance.BetweenEdgesEuclidean ( Vector3Int  edgeA,
Vector3Int  edgeB 
)
static

returns the euclidean distance between the midpoints of both input edges

◆ BetweenCorners()

static int Wunderwunsch.HexMapLibrary.HexGrid.GetDistance.BetweenCorners ( Vector3Int  cornerA,
Vector3Int  cornerB 
)
static

returns the corner-distance between both input corners

◆ BetweenCornersEuclidean()

static float Wunderwunsch.HexMapLibrary.HexGrid.GetDistance.BetweenCornersEuclidean ( Vector3Int  cornerA,
Vector3Int  cornerB 
)
static

returns the euclidean distance between both input corners