Class HexGeometryUtils
Note
This class is available only in Tessera Pro
Inheritance
HexGeometryUtils
Assembly: Tessera.dll
Syntax
public static class HexGeometryUtils
Methods
CubeRotate(HexRotation, Vector3Int)
Declaration
public static Vector3Int CubeRotate(HexRotation rotation, Vector3Int cc)
Parameters
Type |
Name |
Description |
HexRotation |
rotation |
|
Vector3Int |
cc |
|
Returns
Type |
Description |
Vector3Int |
|
FromCubeCords(Vector3Int, int)
Declaration
public static Vector3Int FromCubeCords(Vector3Int cc, int y = 0)
Parameters
Type |
Name |
Description |
Vector3Int |
cc |
|
int |
y |
|
Returns
Type |
Description |
Vector3Int |
|
FromSide(int)
Declaration
public static HexPrismFaceDir FromSide(int side)
Parameters
Type |
Name |
Description |
int |
side |
|
Returns
GetCellCenter(Vector3Int, Vector3, Vector3)
Declaration
public static Vector3 GetCellCenter(Vector3Int cell, Vector3 origin, Vector3 cellSize)
Parameters
Type |
Name |
Description |
Vector3Int |
cell |
|
Vector3 |
origin |
|
Vector3 |
cellSize |
|
Returns
Rotate(HexRotation, Vector3Int)
Declaration
public static Vector3Int Rotate(HexRotation rotation, Vector3Int cell)
Parameters
Type |
Name |
Description |
HexRotation |
rotation |
|
Vector3Int |
cell |
|
Returns
Type |
Description |
Vector3Int |
|
ToCubeCoords(Vector3Int)
Declaration
public static Vector3Int ToCubeCoords(Vector3Int cell)
Parameters
Type |
Name |
Description |
Vector3Int |
cell |
|
Returns
Type |
Description |
Vector3Int |
|