LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
GridBounds

Inherits IEquatable< GridBounds >.

Public Member Functions

bool Contains (GridBounds bounds)
 
bool Contains (Point point)
 
void Encapsulate (GridBounds bounds)
 
void Encapsulate (Point point)
 
bool Equals (GridBounds other)
 
override bool Equals (object obj)
 
void Expand (int left, int right, int up, int down)
 
GridBounds GetDivided (Point scale)
 
GridBounds GetExpanded (int left, int right, int up, int down)
 
GridBounds GetExpanded (int leftRight, int upDown)
 
GridBounds GetExpanded (Point padding)
 
override int GetHashCode ()
 
GridBounds GetIntersection (GridBounds other)
 
 GridBounds (int minX, int minY, int width, int height)
 
 GridBounds (Point min, Point size)
 
bool Overlaps (GridBounds bounds)
 
override string ToString ()
 

Static Public Member Functions

static GridBounds Empty ()
 
static GridBounds MinMax (int minX, int minY, int maxX, int maxY)
 
static GridBounds MinMax (Point min, Point max)
 
static bool operator!= (GridBounds a, GridBounds b)
 
static bool operator== (GridBounds a, GridBounds b)
 

Public Attributes

Point max
 
Point min
 

Properties

Point center [get]
 
bool empty [get]
 
Point size [get]