Show / Hide Table of Contents

Class SquareDirExtensions

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

Methods

Forward(SquareDir)

Declaration
public static Vector3Int Forward(this SquareDir dir)
Parameters
Type Name Description
SquareDir dir
Returns
Type Description
Vector3Int

The normal vector for a given face.

GetPosition(SquareCorner)

Declaration
public static Vector3 GetPosition(this SquareCorner corner)
Parameters
Type Name Description
SquareCorner corner
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
Type Name Description
SquareDir dir
Returns
Type Description
SquareDir

Returns the face dir with the opposite normal vector.

In This Article
Back to top Generated by DocFX