Table of Contents

Struct GlobalChunkPivot

Namespace
Game.Core.Coordinates
Assembly
Game.Core.Coordinates.dll
public readonly struct GlobalChunkPivot : IPivot<GlobalChunkCoordinate, ChunkDirection, GlobalChunkPivot>, IPositionalPivot<GlobalChunkCoordinate, GlobalChunkPivot>, IDirectionalPivot<ChunkDirection, GlobalChunkPivot>, IPivot<GlobalChunkPivot>, IConvertibleToLocalPivot<GlobalChunkTransform, LocalChunkPivot>
Implements
Extension Methods

Constructors

GlobalChunkPivot(GlobalChunkCoordinate, ChunkDirection)

public GlobalChunkPivot(GlobalChunkCoordinate position, ChunkDirection direction)

Parameters

position GlobalChunkCoordinate
direction ChunkDirection

Fields

Direction

public readonly ChunkDirection Direction

Field Value

ChunkDirection

Position

public readonly GlobalChunkCoordinate Position

Field Value

GlobalChunkCoordinate

Methods

Equals(GlobalChunkPivot)

public bool Equals(GlobalChunkPivot other)

Parameters

other GlobalChunkPivot

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Rotate(GridRotation)

public GlobalChunkPivot Rotate(GridRotation rotation)

Parameters

rotation GridRotation

Returns

GlobalChunkPivot

ToLocal(in GlobalChunkTransform)

public LocalChunkPivot ToLocal(in GlobalChunkTransform transform)

Parameters

transform GlobalChunkTransform

Returns

LocalChunkPivot

ToString()

public override string ToString()

Returns

string

Translate(int)

public GlobalChunkPivot Translate(int chunks = 1)

Parameters

chunks int

Returns

GlobalChunkPivot

Operators

operator +(in GlobalChunkPivot, ChunkVector)

public static GlobalChunkPivot operator +(in GlobalChunkPivot lhs, ChunkVector rhs)

Parameters

lhs GlobalChunkPivot
rhs ChunkVector

Returns

GlobalChunkPivot

operator ==(in GlobalChunkPivot, in GlobalChunkPivot)

public static bool operator ==(in GlobalChunkPivot lhs, in GlobalChunkPivot rhs)

Parameters

lhs GlobalChunkPivot
rhs GlobalChunkPivot

Returns

bool

operator !=(in GlobalChunkPivot, in GlobalChunkPivot)

public static bool operator !=(in GlobalChunkPivot lhs, in GlobalChunkPivot rhs)

Parameters

lhs GlobalChunkPivot
rhs GlobalChunkPivot

Returns

bool

operator -(in GlobalChunkPivot, ChunkVector)

public static GlobalChunkPivot operator -(in GlobalChunkPivot lhs, ChunkVector rhs)

Parameters

lhs GlobalChunkPivot
rhs ChunkVector

Returns

GlobalChunkPivot