Show / Hide Table of Contents

Class HexGeometryUtils

Note

This class is available only in Tessera Pro

Inheritance
Object
HexGeometryUtils
Namespace: Tessera
Assembly: cs.temp.dll.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, Int32)

Declaration
public static Vector3Int FromCubeCords(Vector3Int cc, int y = 0)
Parameters
Type Name Description
Vector3Int cc
Int32 y
Returns
Type Description
Vector3Int

FromSide(Int32)

Declaration
public static HexPrismFaceDir FromSide(int side)
Parameters
Type Name Description
Int32 side
Returns
Type Description
HexPrismFaceDir

GetCellCenter(Vector3Int, Vector3, Vector3)

Declaration
public static Vector3 GetCellCenter(Vector3Int cell, Vector3 origin, Vector3 tileSize)
Parameters
Type Name Description
Vector3Int cell
Vector3 origin
Vector3 tileSize
Returns
Type Description
Vector3

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
Back to top Generated by DocFX