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
Fields
Max
public readonly SuperChunkCoordinate Max
Field Value
Min
public readonly SuperChunkCoordinate Min
Field Value
Properties
Dimensions
public SuperChunkDimensions Dimensions { get; }
Property Value
Methods
Equals(SuperChunkBounds)
public bool Equals(SuperChunkBounds other)
Parameters
otherSuperChunkBounds
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
From(SuperChunkCoordinate, SuperChunkCoordinate)
public static SuperChunkBounds From(SuperChunkCoordinate a, SuperChunkCoordinate b)
Parameters
Returns
From(SuperChunkCoordinate, SuperChunkDimensions)
public static SuperChunkBounds From(SuperChunkCoordinate origin, SuperChunkDimensions dimensions)
Parameters
originSuperChunkCoordinatedimensionsSuperChunkDimensions
Returns
From<TEnumerable>(TEnumerable)
public static SuperChunkBounds From<TEnumerable>(TEnumerable coordinates) where TEnumerable : IEnumerable<SuperChunkCoordinate>
Parameters
coordinatesTEnumerable
Returns
Type Parameters
TEnumerable
GetHashCode()
public override int GetHashCode()
Returns
- int
Includes(SuperChunkCoordinate)
public bool Includes(SuperChunkCoordinate c)
Parameters
Returns
- bool
ToCenter_W(float)
public WorldCoordinate ToCenter_W(float layer = 0)
Parameters
layerfloat
Returns
ToChunkBounds()
public GlobalChunkBounds ToChunkBounds()
Returns
ToString()
public override string ToString()
Returns
- string
ToTileBounds()
public GlobalTileBounds ToTileBounds()
Returns
To_W(float, float)
public Bounds To_W(float layerDimension, float layerCenter)
Parameters
layerDimensionfloatlayerCenterfloat
Returns
- Bounds
Operators
operator ==(SuperChunkBounds, SuperChunkBounds)
public static bool operator ==(SuperChunkBounds lhs, SuperChunkBounds rhs)
Parameters
lhsSuperChunkBoundsrhsSuperChunkBounds
Returns
- bool
operator !=(SuperChunkBounds, SuperChunkBounds)
public static bool operator !=(SuperChunkBounds lhs, SuperChunkBounds rhs)
Parameters
lhsSuperChunkBoundsrhsSuperChunkBounds
Returns
- bool