Struct HexRotation
Represents rotations / reflections of a hexagon
Note
This class is available only in Tessera Pro
Assembly: Tessera.dll
Syntax
public struct HexRotation
Properties
All
Declaration
public static HexRotation[] All { get; }
Property Value
Identity
Declaration
public static HexRotation Identity { get; }
Property Value
IsReflection
Declaration
public bool IsReflection { get; }
Property Value
ReflectForwardLeft
Declaration
public static HexRotation ReflectForwardLeft { get; }
Property Value
ReflectForwardRight
Declaration
public static HexRotation ReflectForwardRight { get; }
Property Value
ReflectX
Declaration
public static HexRotation ReflectX { get; }
Property Value
ReflectZ
Declaration
public static HexRotation ReflectZ { get; }
Property Value
RotateCCW
Declaration
public static HexRotation RotateCCW { get; }
Property Value
Rotation
Declaration
public int Rotation { get; }
Property Value
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Invert()
Declaration
public HexRotation Invert()
Returns
Rotate60(int)
Declaration
public static HexRotation Rotate60(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
Operators
operator ==(HexRotation, HexRotation)
Declaration
public static bool operator ==(HexRotation a, HexRotation b)
Parameters
Returns
implicit operator HexRotation(CellRotation)
Declaration
public static implicit operator HexRotation(CellRotation r)
Parameters
Returns
implicit operator CellRotation(HexRotation)
Declaration
public static implicit operator CellRotation(HexRotation r)
Parameters
Returns
operator !=(HexRotation, HexRotation)
Declaration
public static bool operator !=(HexRotation a, HexRotation b)
Parameters
Returns
operator *(HexRotation, int)
Declaration
public static int operator *(HexRotation a, int side)
Parameters
Returns
operator *(HexRotation, HexPrismFaceDir)
Declaration
public static HexPrismFaceDir operator *(HexRotation rotation, HexPrismFaceDir faceDir)
Parameters
Returns
operator *(HexRotation, HexRotation)
Declaration
public static HexRotation operator *(HexRotation a, HexRotation b)
Parameters
Returns