Table of Contents

Struct CubeRotation

Namespace
Game.Core.Coordinates
Assembly
Game.Core.Coordinates.dll
public readonly struct CubeRotation : IConvertibleToWorldRotation
Implements
Extension Methods

Constructors

CubeRotation(GridRotation, GridRotation, GridRotation)

public CubeRotation(GridRotation x, GridRotation y, GridRotation z)

Parameters

x GridRotation
y GridRotation
z GridRotation

Fields

Identity

public static CubeRotation Identity

Field Value

CubeRotation

XRotation

public readonly GridRotation XRotation

Field Value

GridRotation

YRotation

public readonly GridRotation YRotation

Field Value

GridRotation

ZRotation

public readonly GridRotation ZRotation

Field Value

GridRotation

Methods

Equals(CubeRotation)

public bool Equals(CubeRotation other)

Parameters

other CubeRotation

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

RotateX(GridRotation)

public static CubeRotation RotateX(GridRotation xRotation)

Parameters

xRotation GridRotation

Returns

CubeRotation

RotateY(GridRotation)

public static CubeRotation RotateY(GridRotation yRotation)

Parameters

yRotation GridRotation

Returns

CubeRotation

RotateZ(GridRotation)

public static CubeRotation RotateZ(GridRotation zRotation)

Parameters

zRotation GridRotation

Returns

CubeRotation

ToString()

public override string ToString()

Returns

string

ToWorld()

public WorldRotation ToWorld()

Returns

WorldRotation

Operators

operator +(CubeRotation, CubeRotation)

public static CubeRotation operator +(CubeRotation lhs, CubeRotation rhs)

Parameters

lhs CubeRotation
rhs CubeRotation

Returns

CubeRotation

operator ==(CubeRotation, CubeRotation)

public static bool operator ==(CubeRotation left, CubeRotation right)

Parameters

left CubeRotation
right CubeRotation

Returns

bool

operator !=(CubeRotation, CubeRotation)

public static bool operator !=(CubeRotation left, CubeRotation right)

Parameters

left CubeRotation
right CubeRotation

Returns

bool

operator -(CubeRotation)

public static CubeRotation operator -(CubeRotation lhs)

Parameters

lhs CubeRotation

Returns

CubeRotation