Class SquareRotation
Represents rotations / reflections of a square
Inheritance
System.Object
SquareRotation
Assembly: Sylves.dll
Syntax
public sealed class SquareRotation : ValueType
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
Type |
Description |
System.Boolean |
|
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
RotateCW
Declaration
public static SquareRotation RotateCW { get; }
Property Value
Rotation
Declaration
public int Rotation { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
FromMatrix(Matrix4x4)
Declaration
public static Nullable<SquareRotation> FromMatrix(Matrix4x4 matrix)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Invert()
Declaration
public SquareRotation Invert()
Returns
Rotate90(Int32)
Declaration
public static SquareRotation Rotate90(int i)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
ToMatrix()
Declaration
public Matrix4x4 ToMatrix()
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(SquareRotation, SquareRotation)
Declaration
public static bool operator ==(SquareRotation a, SquareRotation b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(CellRotation to SquareRotation)
Declaration
public static implicit operator SquareRotation(CellRotation r)
Parameters
Returns
Implicit(SquareRotation to CellRotation)
Declaration
public static implicit operator CellRotation(SquareRotation r)
Parameters
Returns
Inequality(SquareRotation, SquareRotation)
Declaration
public static bool operator !=(SquareRotation a, SquareRotation b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(SquareRotation, SquareBound)
Declaration
public static SquareBound operator *(SquareRotation rotation, SquareBound bound)
Parameters
Returns
Multiply(SquareRotation, SquareCorner)
Declaration
public static SquareCorner operator *(SquareRotation rotation, SquareCorner dir)
Parameters
Returns
Multiply(SquareRotation, SquareDir)
Declaration
public static SquareDir operator *(SquareRotation rotation, SquareDir dir)
Parameters
Returns
Multiply(SquareRotation, SquareRotation)
Declaration
public static SquareRotation operator *(SquareRotation a, SquareRotation b)
Parameters
Returns
Multiply(SquareRotation, Vector2Int)
Declaration
public static Vector2Int operator *(SquareRotation r, Vector2Int v)
Parameters
Returns
Multiply(SquareRotation, Vector3Int)
Declaration
public static Vector3Int operator *(SquareRotation r, Vector3Int v)
Parameters
Returns