Table of Contents

Struct SuperChunkBounds

Namespace
Game.Core.Coordinates
Assembly
Game.Core.Coordinates.dll
public readonly struct SuperChunkBounds
Extension Methods

Constructors

SuperChunkBounds(SuperChunkCoordinate, SuperChunkCoordinate)

public SuperChunkBounds(SuperChunkCoordinate min, SuperChunkCoordinate max)

Parameters

min SuperChunkCoordinate
max SuperChunkCoordinate

Fields

Max

public readonly SuperChunkCoordinate Max

Field Value

SuperChunkCoordinate

Min

public readonly SuperChunkCoordinate Min

Field Value

SuperChunkCoordinate

Properties

Dimensions

public SuperChunkDimensions Dimensions { get; }

Property Value

SuperChunkDimensions

Methods

Equals(SuperChunkBounds)

public bool Equals(SuperChunkBounds other)

Parameters

other SuperChunkBounds

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

From(SuperChunkCoordinate, SuperChunkCoordinate)

public static SuperChunkBounds From(SuperChunkCoordinate a, SuperChunkCoordinate b)

Parameters

a SuperChunkCoordinate
b SuperChunkCoordinate

Returns

SuperChunkBounds

From(SuperChunkCoordinate, SuperChunkDimensions)

public static SuperChunkBounds From(SuperChunkCoordinate origin, SuperChunkDimensions dimensions)

Parameters

origin SuperChunkCoordinate
dimensions SuperChunkDimensions

Returns

SuperChunkBounds

From<TEnumerable>(TEnumerable)

public static SuperChunkBounds From<TEnumerable>(TEnumerable coordinates) where TEnumerable : IEnumerable<SuperChunkCoordinate>

Parameters

coordinates TEnumerable

Returns

SuperChunkBounds

Type Parameters

TEnumerable

GetHashCode()

public override int GetHashCode()

Returns

int

Includes(SuperChunkCoordinate)

public bool Includes(SuperChunkCoordinate c)

Parameters

c SuperChunkCoordinate

Returns

bool

ToCenter_W(float)

public WorldCoordinate ToCenter_W(float layer = 0)

Parameters

layer float

Returns

WorldCoordinate

ToChunkBounds()

public GlobalChunkBounds ToChunkBounds()

Returns

GlobalChunkBounds

ToString()

public override string ToString()

Returns

string

ToTileBounds()

public GlobalTileBounds ToTileBounds()

Returns

GlobalTileBounds

To_W(float, float)

public Bounds To_W(float layerDimension, float layerCenter)

Parameters

layerDimension float
layerCenter float

Returns

Bounds

Operators

operator ==(SuperChunkBounds, SuperChunkBounds)

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

Parameters

lhs SuperChunkBounds
rhs SuperChunkBounds

Returns

bool

operator !=(SuperChunkBounds, SuperChunkBounds)

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

Parameters

lhs SuperChunkBounds
rhs SuperChunkBounds

Returns

bool