Show / Hide Table of Contents

Class HexPrismCellDirExtensions

Inheritance
System.Object
HexPrismCellDirExtensions
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public static class HexPrismCellDirExtensions : Object

Methods

Forward(PTHexPrismDir)

Declaration
public static Vector3 Forward(this PTHexPrismDir dir)
Parameters
Type Name Description
PTHexPrismDir dir
Returns
Type Description
Vector3

The normal vector for a given face.

Inverted(PTHexPrismDir)

Declaration
public static PTHexPrismDir Inverted(this PTHexPrismDir dir)
Parameters
Type Name Description
PTHexPrismDir dir
Returns
Type Description
PTHexPrismDir

Returns the face dir with the opposite normal vector.

IsAxial(PTHexPrismDir)

Declaration
public static bool IsAxial(this PTHexPrismDir dir)
Parameters
Type Name Description
PTHexPrismDir dir
Returns
Type Description
System.Boolean

Up(PTHexPrismDir)

Declaration
public static Vector3Int Up(this PTHexPrismDir dir)
Parameters
Type Name Description
PTHexPrismDir dir
Returns
Type Description
Vector3Int

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

In This Article
Back to top Generated by DocFX