Dungeon Architect  17.0.0
SharpNav.Geometry.BBox2i Struct Reference

A 2d bounding box represeted by integers. More...

Inheritance diagram for SharpNav.Geometry.BBox2i:

Public Member Functions

 BBox2i (Vector2i min, Vector2i max)
 Initializes a new instance of the BBox2i struct. More...
 
 BBox2i (int minX, int minY, int maxX, int maxY)
 Initializes a new instance of the BBox2i struct. More...
 
override string ToString ()
 Turns the instance into a human-readable string. More...
 
override int GetHashCode ()
 Gets a unique hash code for this instance. More...
 
override bool Equals (object obj)
 Checks for equality between this instance and a specified object. More...
 
bool Equals (BBox2i other)
 Checks for equality between this instance and a specified instance of BBox2i. More...
 

Static Public Member Functions

static bool operator== (BBox2i left, BBox2i right)
 Compares two instances of BBox2i for equality. More...
 
static bool operator!= (BBox2i left, BBox2i right)
 Compares two instances of BBox2i for inequality. More...
 

Public Attributes

Vector2i Min
 The minimum of the bounding box. More...
 
Vector2i Max
 The maximum of the bounding box. More...
 

Detailed Description

A 2d bounding box represeted by integers.

Definition at line 12 of file BBox2i.cs.

Constructor & Destructor Documentation

◆ BBox2i() [1/2]

SharpNav.Geometry.BBox2i.BBox2i ( Vector2i  min,
Vector2i  max 
)

Initializes a new instance of the BBox2i struct.

Parameters
minA minimum bound.
maxA maximum bound.

Definition at line 29 of file BBox2i.cs.

◆ BBox2i() [2/2]

SharpNav.Geometry.BBox2i.BBox2i ( int  minX,
int  minY,
int  maxX,
int  maxY 
)

Initializes a new instance of the BBox2i struct.

Parameters
minXThe minimum X bound.
minYThe minimum Y bound.
maxXThe maximum X bound.
maxYThe maximum Y bound.

Definition at line 42 of file BBox2i.cs.

Member Function Documentation

◆ Equals() [1/2]

bool SharpNav.Geometry.BBox2i.Equals ( BBox2i  other)

Checks for equality between this instance and a specified instance of BBox2i.

Parameters
otherAn instance of BBox2i.
Returns
A value indicating whether this instance and the other instance are equal.

Definition at line 110 of file BBox2i.cs.

◆ Equals() [2/2]

override bool SharpNav.Geometry.BBox2i.Equals ( object  obj)

Checks for equality between this instance and a specified object.

Parameters
objAn object.
Returns
A value indicating whether this instance and the object are equal.

Definition at line 96 of file BBox2i.cs.

◆ GetHashCode()

override int SharpNav.Geometry.BBox2i.GetHashCode ( )

Gets a unique hash code for this instance.

Returns
A hash code.

Definition at line 85 of file BBox2i.cs.

◆ operator!=()

static bool SharpNav.Geometry.BBox2i.operator!= ( BBox2i  left,
BBox2i  right 
)
static

Compares two instances of BBox2i for inequality.

Parameters
leftAn instance of BBox2i.
rightAnother instance of BBox2i.
Returns
A value indicating whether the two instances are unequal.

Definition at line 67 of file BBox2i.cs.

◆ operator==()

static bool SharpNav.Geometry.BBox2i.operator== ( BBox2i  left,
BBox2i  right 
)
static

Compares two instances of BBox2i for equality.

Parameters
leftAn instance of BBox2i.
rightAnother instance of BBox2i.
Returns
A value indicating whether the two instances are equal.

Definition at line 56 of file BBox2i.cs.

◆ ToString()

override string SharpNav.Geometry.BBox2i.ToString ( )

Turns the instance into a human-readable string.

Returns
A string representing the instance.

Definition at line 76 of file BBox2i.cs.

Member Data Documentation

◆ Max

Vector2i SharpNav.Geometry.BBox2i.Max

The maximum of the bounding box.

Definition at line 22 of file BBox2i.cs.

◆ Min

Vector2i SharpNav.Geometry.BBox2i.Min

The minimum of the bounding box.

Definition at line 17 of file BBox2i.cs.


The documentation for this struct was generated from the following file: