Table of Contents

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

position ChunkVector
rotation GridRotation

Fields

Identity

public static readonly LocalChunkTransform Identity

Field Value

LocalChunkTransform

Position

public readonly ChunkVector Position

Field Value

ChunkVector

Rotation

public readonly GridRotation Rotation

Field Value

GridRotation

Methods

Equals(LocalChunkTransform)

public bool Equals(LocalChunkTransform other)

Parameters

other LocalChunkTransform

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 LocalChunkTransform Rotate(GridRotation rotation)

Parameters

rotation GridRotation

Returns

LocalChunkTransform

ToGlobal(GlobalChunkTransform)

public GlobalChunkTransform ToGlobal(GlobalChunkTransform transform)

Parameters

transform GlobalChunkTransform

Returns

GlobalChunkTransform

ToPivot()

public LocalChunkPivot ToPivot()

Returns

LocalChunkPivot

ToString()

public override string ToString()

Returns

string

Operators

operator +(in LocalChunkTransform, ChunkVector)

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

Parameters

lhs LocalChunkTransform
rhs ChunkVector

Returns

LocalChunkTransform

operator ==(in LocalChunkTransform, in LocalChunkTransform)

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

Parameters

lhs LocalChunkTransform
rhs LocalChunkTransform

Returns

bool

operator !=(in LocalChunkTransform, in LocalChunkTransform)

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

Parameters

lhs LocalChunkTransform
rhs LocalChunkTransform

Returns

bool

operator *(ChunkVector, in LocalChunkTransform)

public static ChunkVector operator *(ChunkVector lhs, in LocalChunkTransform rhs)

Parameters

lhs ChunkVector
rhs LocalChunkTransform

Returns

ChunkVector

operator -(in LocalChunkTransform, ChunkVector)

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

Parameters

lhs LocalChunkTransform
rhs ChunkVector

Returns

LocalChunkTransform