Table of Contents

Struct SuperChunkCoordinate

Namespace
Game.Core.Coordinates
Assembly
Game.Core.Coordinates.dll
public struct SuperChunkCoordinate : IDiscreteCoordinate<SuperChunkCoordinate>
Implements
Extension Methods

Constructors

SuperChunkCoordinate(int, int)

public SuperChunkCoordinate(int x, int y)

Parameters

x int
y int

Fields

Origin

public static readonly SuperChunkCoordinate Origin

Field Value

SuperChunkCoordinate

x

public int x

Field Value

int

y

public int y

Field Value

int

Methods

ComponentWiseMax(SuperChunkCoordinate)

public SuperChunkCoordinate ComponentWiseMax(SuperChunkCoordinate other)

Parameters

other SuperChunkCoordinate

Returns

SuperChunkCoordinate

ComponentWiseMin(SuperChunkCoordinate)

public SuperChunkCoordinate ComponentWiseMin(SuperChunkCoordinate other)

Parameters

other SuperChunkCoordinate

Returns

SuperChunkCoordinate

Equals(SuperChunkCoordinate)

public readonly bool Equals(SuperChunkCoordinate other)

Parameters

other SuperChunkCoordinate

Returns

bool

Equals(object)

public override readonly bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override readonly int GetHashCode()

Returns

int

HorizontalDistance(SuperChunkCoordinate)

public readonly int HorizontalDistance(SuperChunkCoordinate other)

Parameters

other SuperChunkCoordinate

Returns

int

ManhattanDistance(SuperChunkCoordinate)

public readonly int ManhattanDistance(SuperChunkCoordinate other)

Parameters

other SuperChunkCoordinate

Returns

int

ToCenter_W(float)

public readonly WorldCoordinate ToCenter_W(float layer = 0)

Parameters

layer float

Returns

WorldCoordinate

ToOrigin_G(short)

public readonly GlobalTileCoordinate ToOrigin_G(short layer = 0)

Parameters

layer short

Returns

GlobalTileCoordinate

ToOrigin_GC()

public readonly GlobalChunkCoordinate ToOrigin_GC()

Returns

GlobalChunkCoordinate

ToString()

public override readonly string ToString()

Returns

string

Translate(SuperChunkVector)

public SuperChunkCoordinate Translate(SuperChunkVector translation)

Parameters

translation SuperChunkVector

Returns

SuperChunkCoordinate

VerticalDistance(SuperChunkCoordinate)

public readonly int VerticalDistance(SuperChunkCoordinate other)

Parameters

other SuperChunkCoordinate

Returns

int

Operators

operator +(SuperChunkCoordinate, SuperChunkVector)

public static SuperChunkCoordinate operator +(SuperChunkCoordinate lhs, SuperChunkVector rhs)

Parameters

lhs SuperChunkCoordinate
rhs SuperChunkVector

Returns

SuperChunkCoordinate

operator ==(SuperChunkCoordinate, SuperChunkCoordinate)

public static bool operator ==(SuperChunkCoordinate lhs, SuperChunkCoordinate rhs)

Parameters

lhs SuperChunkCoordinate
rhs SuperChunkCoordinate

Returns

bool

explicit operator int2(SuperChunkCoordinate)

public static explicit operator int2(SuperChunkCoordinate v)

Parameters

v SuperChunkCoordinate

Returns

int2

operator !=(SuperChunkCoordinate, SuperChunkCoordinate)

public static bool operator !=(SuperChunkCoordinate lhs, SuperChunkCoordinate rhs)

Parameters

lhs SuperChunkCoordinate
rhs SuperChunkCoordinate

Returns

bool

operator -(SuperChunkCoordinate, SuperChunkCoordinate)

public static SuperChunkVector operator -(SuperChunkCoordinate lhs, SuperChunkCoordinate rhs)

Parameters

lhs SuperChunkCoordinate
rhs SuperChunkCoordinate

Returns

SuperChunkVector

operator -(SuperChunkCoordinate, SuperChunkVector)

public static SuperChunkCoordinate operator -(SuperChunkCoordinate lhs, SuperChunkVector rhs)

Parameters

lhs SuperChunkCoordinate
rhs SuperChunkVector

Returns

SuperChunkCoordinate