Struct SquareRotation
Represents rotations / reflections of a square
Assembly: Tessera.dll
Syntax
public struct SquareRotation
Properties
All
Declaration
public static SquareRotation[] All { get; }
Property Value
Identity
Declaration
public static SquareRotation Identity { get; }
Property Value
IsReflection
Declaration
public bool IsReflection { get; }
Property Value
ReflectX
Declaration
public static SquareRotation ReflectX { get; }
Property Value
ReflectY
Declaration
public static SquareRotation ReflectY { get; }
Property Value
RotateCCW
Declaration
public static SquareRotation 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 SquareRotation Invert()
Returns
Rotate90(int)
Declaration
public static SquareRotation Rotate90(int i)
Parameters
Type |
Name |
Description |
int |
i |
|
Returns
Operators
operator ==(SquareRotation, SquareRotation)
Declaration
public static bool operator ==(SquareRotation a, SquareRotation b)
Parameters
Returns
implicit operator SquareRotation(CellRotation)
Declaration
public static implicit operator SquareRotation(CellRotation r)
Parameters
Returns
implicit operator CellRotation(SquareRotation)
Declaration
public static implicit operator CellRotation(SquareRotation r)
Parameters
Returns
operator !=(SquareRotation, SquareRotation)
Declaration
public static bool operator !=(SquareRotation a, SquareRotation b)
Parameters
Returns
operator *(SquareRotation, int)
Declaration
public static int operator *(SquareRotation a, int side)
Parameters
Returns
operator *(SquareRotation, SquareFaceDir)
Declaration
public static SquareFaceDir operator *(SquareRotation rotation, SquareFaceDir faceDir)
Parameters
Returns
operator *(SquareRotation, SquareRotation)
Declaration
public static SquareRotation operator *(SquareRotation a, SquareRotation b)
Parameters
Returns
operator *(SquareRotation, BoundsInt)
Declaration
public static BoundsInt operator *(SquareRotation r, BoundsInt bounds)
Parameters
Returns
Type |
Description |
BoundsInt |
|
operator *(SquareRotation, Vector3Int)
Declaration
public static Vector3Int operator *(SquareRotation r, Vector3Int v)
Parameters
Returns
Type |
Description |
Vector3Int |
|