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

Static Public Member Functions

static Vector3Int OfCartesianCoordinate (Vector3 cartesianCoordinate)
 returns the tile coordinate of the input cartesian coordinate More...
 
static Vector3Int FromTileRotated60DegreeClockwise (Vector3Int center, Vector3Int pointToRotate)
 rotates the input tile coordinate 60° Clockwise around the specified center point More...
 
static Vector3Int FromTileRotated60DegreeCounterClockwise (Vector3Int center, Vector3Int pointToRotate)
 rotates the input tile coordinate 60° Counter-Clockwise around the specified center point More...
 

Member Function Documentation

◆ OfCartesianCoordinate()

static Vector3Int Wunderwunsch.HexMapLibrary.HexGrid.GetTile.OfCartesianCoordinate ( Vector3  cartesianCoordinate)
static

returns the tile coordinate of the input cartesian coordinate

◆ FromTileRotated60DegreeClockwise()

static Vector3Int Wunderwunsch.HexMapLibrary.HexGrid.GetTile.FromTileRotated60DegreeClockwise ( Vector3Int  center,
Vector3Int  pointToRotate 
)
static

rotates the input tile coordinate 60° Clockwise around the specified center point

TODO Add image

◆ FromTileRotated60DegreeCounterClockwise()

static Vector3Int Wunderwunsch.HexMapLibrary.HexGrid.GetTile.FromTileRotated60DegreeCounterClockwise ( Vector3Int  center,
Vector3Int  pointToRotate 
)
static

rotates the input tile coordinate 60° Counter-Clockwise around the specified center point

TODO Add image