Struct TriangleRotation
Represents rotations / reflections of a hexagon
Note
This class is available only in Tessera Pro
Assembly: Tessera.dll
Syntax
public struct TriangleRotation
Properties
All
Declaration
public static TriangleRotation[] All { get; }
Property Value
Identity
Declaration
public static TriangleRotation Identity { get; }
Property Value
IsReflection
Declaration
public bool IsReflection { get; }
Property Value
ReflectX
Declaration
public static TriangleRotation ReflectX { get; }
Property Value
ReflectY
Declaration
public static TriangleRotation ReflectY { get; }
Property Value
RotateCCW
Declaration
public static TriangleRotation RotateCCW { get; }
Property Value
RotateCW
Declaration
public static TriangleRotation RotateCW { 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 TriangleRotation Invert()
Returns
RotateCCW60(int)
Declaration
public static TriangleRotation RotateCCW60(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
Operators
operator ==(TriangleRotation, TriangleRotation)
Declaration
public static bool operator ==(TriangleRotation a, TriangleRotation b)
Parameters
Returns
implicit operator TriangleRotation(CellRotation)
Declaration
public static implicit operator TriangleRotation(CellRotation r)
Parameters
Returns
implicit operator CellRotation(TriangleRotation)
Declaration
public static implicit operator CellRotation(TriangleRotation r)
Parameters
Returns
operator !=(TriangleRotation, TriangleRotation)
Declaration
public static bool operator !=(TriangleRotation a, TriangleRotation b)
Parameters
Returns
operator *(TriangleRotation, int)
Declaration
public static int operator *(TriangleRotation a, int side)
Parameters
Returns
operator *(TriangleRotation, TrianglePrismFaceDir)
Declaration
public static TrianglePrismFaceDir operator *(TriangleRotation rotation, TrianglePrismFaceDir faceDir)
Parameters
Returns
operator *(TriangleRotation, TriangleRotation)
Declaration
public static TriangleRotation operator *(TriangleRotation a, TriangleRotation b)
Parameters
Returns