Class CubeDirExtensions
Inheritance
CubeDirExtensions
Assembly: Tessera.dll
Syntax
public static class CubeDirExtensions
Methods
Forward(CubeDir)
Declaration
public static Vector3Int Forward(this CubeDir dir)
Parameters
Type |
Name |
Description |
CubeDir |
dir |
|
Returns
Type |
Description |
Vector3Int |
The normal vector for a given face.
|
Inverted(CubeDir)
Declaration
public static CubeDir Inverted(this CubeDir dir)
Parameters
Type |
Name |
Description |
CubeDir |
dir |
|
Returns
Type |
Description |
CubeDir |
Returns the face dir with the opposite normal vector.
|
Up(CubeDir)
Declaration
public static Vector3Int Up(this CubeDir dir)
Parameters
Type |
Name |
Description |
CubeDir |
dir |
|
Returns
Type |
Description |
Vector3Int |
Returns (0, 1, 0) vector for most faces, and returns (0, 0, 1) for the top/bottom faces.
|