Class SquareDirExtensions
Inheritance
System.Object
SquareDirExtensions
Assembly: Sylves.dll
Syntax
public static class SquareDirExtensions : Object
Methods
Forward(SquareDir)
Declaration
public static Vector3Int Forward(this SquareDir dir)
Parameters
Returns
Type |
Description |
Vector3Int |
The normal vector for a given face.
|
GetPosition(SquareCorner)
Declaration
public static Vector3 GetPosition(this SquareCorner corner)
Parameters
Returns
Type |
Description |
Vector3 |
The position of a corner in a unit square centered on the origin.
|
Inverted(SquareDir)
Declaration
public static SquareDir Inverted(this SquareDir dir)
Parameters
Returns
Type |
Description |
SquareDir |
Returns the face dir with the opposite normal vector.
|