Show / Hide Table of Contents

Struct HexRotation

Represents rotations / reflections of a hexagon

Note

This class is available only in Tessera Pro

Inherited Members
ValueType.ToString()
Namespace: Tessera
Assembly: cs.temp.dll.dll
Syntax
public struct HexRotation

Properties

All

Declaration
public static HexRotation[] All { get; }
Property Value
Type Description
HexRotation[]

Identity

Declaration
public static HexRotation Identity { get; }
Property Value
Type Description
HexRotation

IsReflection

Declaration
public bool IsReflection { get; }
Property Value
Type Description
Boolean

ReflectForwardLeft

Declaration
public static HexRotation ReflectForwardLeft { get; }
Property Value
Type Description
HexRotation

ReflectForwardRight

Declaration
public static HexRotation ReflectForwardRight { get; }
Property Value
Type Description
HexRotation

ReflectX

Declaration
public static HexRotation ReflectX { get; }
Property Value
Type Description
HexRotation

ReflectZ

Declaration
public static HexRotation ReflectZ { get; }
Property Value
Type Description
HexRotation

RotateCCW

Declaration
public static HexRotation RotateCCW { get; }
Property Value
Type Description
HexRotation

Rotation

Declaration
public int Rotation { get; }
Property Value
Type Description
Int32

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
ValueType.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
ValueType.GetHashCode()

Invert()

Declaration
public HexRotation Invert()
Returns
Type Description
HexRotation

Rotate60(Int32)

Declaration
public static HexRotation Rotate60(int i)
Parameters
Type Name Description
Int32 i
Returns
Type Description
HexRotation

Operators

Equality(HexRotation, HexRotation)

Declaration
public static bool operator ==(HexRotation a, HexRotation b)
Parameters
Type Name Description
HexRotation a
HexRotation b
Returns
Type Description
Boolean

Implicit(CellRotation to HexRotation)

Declaration
public static implicit operator HexRotation(CellRotation r)
Parameters
Type Name Description
CellRotation r
Returns
Type Description
HexRotation

Implicit(HexRotation to CellRotation)

Declaration
public static implicit operator CellRotation(HexRotation r)
Parameters
Type Name Description
HexRotation r
Returns
Type Description
CellRotation

Inequality(HexRotation, HexRotation)

Declaration
public static bool operator !=(HexRotation a, HexRotation b)
Parameters
Type Name Description
HexRotation a
HexRotation b
Returns
Type Description
Boolean

Multiply(HexRotation, Int32)

Declaration
public static int operator *(HexRotation a, int side)
Parameters
Type Name Description
HexRotation a
Int32 side
Returns
Type Description
Int32

Multiply(HexRotation, HexPrismFaceDir)

Declaration
public static HexPrismFaceDir operator *(HexRotation rotation, HexPrismFaceDir faceDir)
Parameters
Type Name Description
HexRotation rotation
HexPrismFaceDir faceDir
Returns
Type Description
HexPrismFaceDir

Multiply(HexRotation, HexRotation)

Declaration
public static HexRotation operator *(HexRotation a, HexRotation b)
Parameters
Type Name Description
HexRotation a
HexRotation b
Returns
Type Description
HexRotation
Back to top Generated by DocFX