Show / Hide Table of Contents

Struct SquareRotation

Represents rotations / reflections of a square

Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public struct SquareRotation

Properties

All

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

Identity

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

IsReflection

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

ReflectX

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

ReflectY

Declaration
public static SquareRotation ReflectY { get; }
Property Value
Type Description
SquareRotation

RotateCCW

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

RotateCW

Declaration
public static SquareRotation RotateCW { get; }
Property Value
Type Description
SquareRotation

Rotation

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

Methods

Equals(object)

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

FromMatrix(Matrix4x4)

Declaration
public static SquareRotation? FromMatrix(Matrix4x4 matrix)
Parameters
Type Name Description
Matrix4x4 matrix
Returns
Type Description
SquareRotation?

GetHashCode()

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

Invert()

Declaration
public SquareRotation Invert()
Returns
Type Description
SquareRotation

Rotate90(int)

Declaration
public static SquareRotation Rotate90(int i)
Parameters
Type Name Description
int i
Returns
Type Description
SquareRotation

ToMatrix()

Declaration
public Matrix4x4 ToMatrix()
Returns
Type Description
Matrix4x4

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

operator ==(SquareRotation, SquareRotation)

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

implicit operator SquareRotation(CellRotation)

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

implicit operator CellRotation(SquareRotation)

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

operator !=(SquareRotation, SquareRotation)

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

operator *(SquareRotation, SquareBound)

Declaration
public static SquareBound operator *(SquareRotation rotation, SquareBound bound)
Parameters
Type Name Description
SquareRotation rotation
SquareBound bound
Returns
Type Description
SquareBound

operator *(SquareRotation, SquareCorner)

Declaration
public static SquareCorner operator *(SquareRotation rotation, SquareCorner dir)
Parameters
Type Name Description
SquareRotation rotation
SquareCorner dir
Returns
Type Description
SquareCorner

operator *(SquareRotation, SquareDir)

Declaration
public static SquareDir operator *(SquareRotation rotation, SquareDir dir)
Parameters
Type Name Description
SquareRotation rotation
SquareDir dir
Returns
Type Description
SquareDir

operator *(SquareRotation, SquareRotation)

Declaration
public static SquareRotation operator *(SquareRotation a, SquareRotation b)
Parameters
Type Name Description
SquareRotation a
SquareRotation b
Returns
Type Description
SquareRotation

operator *(SquareRotation, Vector2Int)

Declaration
public static Vector2Int operator *(SquareRotation r, Vector2Int v)
Parameters
Type Name Description
SquareRotation r
Vector2Int v
Returns
Type Description
Vector2Int

operator *(SquareRotation, Vector3Int)

Declaration
public static Vector3Int operator *(SquareRotation r, Vector3Int v)
Parameters
Type Name Description
SquareRotation r
Vector3Int v
Returns
Type Description
Vector3Int
In this article
Back to top Generated by DocFX