Show / Hide Table of Contents

Class CubeFaceDirExtensions

Inheritance
Object
CubeFaceDirExtensions
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public static class CubeFaceDirExtensions

Methods

Forward(CubeFaceDir)

Declaration
public static Vector3Int Forward(this CubeFaceDir faceDir)
Parameters
Type Name Description
CubeFaceDir faceDir
Returns
Type Description
Vector3Int

The normal vector for a given face.

Inverted(CubeFaceDir)

Declaration
public static CubeFaceDir Inverted(this CubeFaceDir faceDir)
Parameters
Type Name Description
CubeFaceDir faceDir
Returns
Type Description
CubeFaceDir

Returns the face dir with the opposite normal vector.

Up(CubeFaceDir)

Declaration
public static Vector3Int Up(this CubeFaceDir faceDir)
Parameters
Type Name Description
CubeFaceDir faceDir
Returns
Type Description
Vector3Int

Returns (0, 1, 0) vector for most faces, and returns (0, 0, 1) for the top/bottom faces.

Back to top Generated by DocFX