Struct LocalChunkTransform
- Namespace
- Game.Core.Coordinates
- Assembly
- Game.Core.Coordinates.dll
public readonly struct LocalChunkTransform
- Extension Methods
Constructors
LocalChunkTransform(ChunkVector, GridRotation)
public LocalChunkTransform(ChunkVector position, GridRotation rotation)
Parameters
positionChunkVectorrotationGridRotation
Fields
Identity
public static readonly LocalChunkTransform Identity
Field Value
Position
public readonly ChunkVector Position
Field Value
Rotation
public readonly GridRotation Rotation
Field Value
Methods
Equals(LocalChunkTransform)
public bool Equals(LocalChunkTransform other)
Parameters
otherLocalChunkTransform
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Rotate(GridRotation)
public LocalChunkTransform Rotate(GridRotation rotation)
Parameters
rotationGridRotation
Returns
ToGlobal(GlobalChunkTransform)
public GlobalChunkTransform ToGlobal(GlobalChunkTransform transform)
Parameters
transformGlobalChunkTransform
Returns
ToPivot()
public LocalChunkPivot ToPivot()
Returns
ToString()
public override string ToString()
Returns
- string
Operators
operator +(in LocalChunkTransform, ChunkVector)
public static LocalChunkTransform operator +(in LocalChunkTransform lhs, ChunkVector rhs)
Parameters
lhsLocalChunkTransformrhsChunkVector
Returns
operator ==(in LocalChunkTransform, in LocalChunkTransform)
public static bool operator ==(in LocalChunkTransform lhs, in LocalChunkTransform rhs)
Parameters
Returns
- bool
operator !=(in LocalChunkTransform, in LocalChunkTransform)
public static bool operator !=(in LocalChunkTransform lhs, in LocalChunkTransform rhs)
Parameters
Returns
- bool
operator *(ChunkVector, in LocalChunkTransform)
public static ChunkVector operator *(ChunkVector lhs, in LocalChunkTransform rhs)
Parameters
lhsChunkVectorrhsLocalChunkTransform
Returns
operator -(in LocalChunkTransform, ChunkVector)
public static LocalChunkTransform operator -(in LocalChunkTransform lhs, ChunkVector rhs)
Parameters
lhsLocalChunkTransformrhsChunkVector