Search Results for

    Show / Hide Table of Contents

    Class HexGeometryUtils

    Note

    This class is available only in Tessera Pro

    Inheritance
    object
    HexGeometryUtils
    Namespace: Tessera
    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
    Type Description
    HexPrismFaceDir

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