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
Fields
Identity
public static CubeRotation Identity
Field Value
XRotation
public readonly GridRotation XRotation
Field Value
YRotation
public readonly GridRotation YRotation
Field Value
ZRotation
public readonly GridRotation ZRotation
Field Value
Methods
Equals(CubeRotation)
public bool Equals(CubeRotation other)
Parameters
otherCubeRotation
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
RotateX(GridRotation)
public static CubeRotation RotateX(GridRotation xRotation)
Parameters
xRotationGridRotation
Returns
RotateY(GridRotation)
public static CubeRotation RotateY(GridRotation yRotation)
Parameters
yRotationGridRotation
Returns
RotateZ(GridRotation)
public static CubeRotation RotateZ(GridRotation zRotation)
Parameters
zRotationGridRotation
Returns
ToString()
public override string ToString()
Returns
- string
ToWorld()
public WorldRotation ToWorld()
Returns
Operators
operator +(CubeRotation, CubeRotation)
public static CubeRotation operator +(CubeRotation lhs, CubeRotation rhs)
Parameters
lhsCubeRotationrhsCubeRotation
Returns
operator ==(CubeRotation, CubeRotation)
public static bool operator ==(CubeRotation left, CubeRotation right)
Parameters
leftCubeRotationrightCubeRotation
Returns
- bool
operator !=(CubeRotation, CubeRotation)
public static bool operator !=(CubeRotation left, CubeRotation right)
Parameters
leftCubeRotationrightCubeRotation
Returns
- bool
operator -(CubeRotation)
public static CubeRotation operator -(CubeRotation lhs)
Parameters
lhsCubeRotation