Show / Hide Table of Contents

Class FaceDirExtensions

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

Methods

Forward(FaceDir)

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

The normal vector for a given face.

Inverted(FaceDir)

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

Returns the face dir with the opposite normal vector.

Up(FaceDir)

Declaration
public static Vector3Int Up(this FaceDir faceDir)
Parameters
Type Name Description
FaceDir 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