Dungeon Architect  17.0.0
SharpNav.PolyBounds Struct Reference

A bounding box for vertices in a PolyMesh. More...

Inheritance diagram for SharpNav.PolyBounds:

Public Member Functions

 PolyBounds (PolyVertex min, PolyVertex max)
 Initializes a new instance of the PolyBounds struct. More...
 
bool Equals (PolyBounds other)
 Compares another PolyBounds instance with this instance for equality. More...
 
override bool Equals (object obj)
 Compares another object with this instance for equality. More...
 
override int GetHashCode ()
 Calculates a hash code unique to the contents of this instance. More...
 
override string ToString ()
 Creates a human-readable string with the contents of this instance. More...
 

Static Public Member Functions

static bool Overlapping (ref PolyBounds a, ref PolyBounds b)
 Checks whether two boudning boxes are intersecting. More...
 
static bool operator== (PolyBounds left, PolyBounds right)
 Compares two PolyBounds instances for equality. More...
 
static bool operator!= (PolyBounds left, PolyBounds right)
 Compares two PolyBounds instances for inequality. More...
 

Public Attributes

PolyVertex Min
 The lower bound of the bounding box. More...
 
PolyVertex Max
 The upper bound of the bounding box. More...
 

Detailed Description

A bounding box for vertices in a PolyMesh.

Definition at line 13 of file PolyBounds.cs.

Constructor & Destructor Documentation

◆ PolyBounds()

SharpNav.PolyBounds.PolyBounds ( PolyVertex  min,
PolyVertex  max 
)

Initializes a new instance of the PolyBounds struct.

Parameters
minThe lower bound of the bounding box.
maxThe upper bound of the bounding box.

Definition at line 30 of file PolyBounds.cs.

Member Function Documentation

◆ Equals() [1/2]

override bool SharpNav.PolyBounds.Equals ( object  obj)

Compares another object with this instance for equality.

Parameters
objAn object.
Returns
A value indicating whether the object is equal to this instance.

Definition at line 86 of file PolyBounds.cs.

◆ Equals() [2/2]

bool SharpNav.PolyBounds.Equals ( PolyBounds  other)

Compares another PolyBounds instance with this instance for equality.

Parameters
otherA bounding box.
Returns
A value indicating whether the bounding box is equal to this instance.

Definition at line 76 of file PolyBounds.cs.

◆ GetHashCode()

override int SharpNav.PolyBounds.GetHashCode ( )

Calculates a hash code unique to the contents of this instance.

Returns
A hash code.

Definition at line 99 of file PolyBounds.cs.

◆ operator!=()

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

Compares two PolyBounds instances for inequality.

Parameters
leftA bounding box.
rightAnother bounding box.
Returns
A value indicating whether the two bounding boxes are not equal.

Definition at line 66 of file PolyBounds.cs.

◆ operator==()

static bool SharpNav.PolyBounds.operator== ( PolyBounds  left,
PolyBounds  right 
)
static

Compares two PolyBounds instances for equality.

Parameters
leftA bounding box.
rightAnother bounding box.
Returns
A value indicating whether the two bounding boxes are equal.

Definition at line 55 of file PolyBounds.cs.

◆ Overlapping()

static bool SharpNav.PolyBounds.Overlapping ( ref PolyBounds  a,
ref PolyBounds  b 
)
static

Checks whether two boudning boxes are intersecting.

Parameters
aThe first bounding box.
bThe second bounding box.
Returns
A value indicating whether the two bounding boxes are overlapping.

Definition at line 42 of file PolyBounds.cs.

◆ ToString()

override string SharpNav.PolyBounds.ToString ( )

Creates a human-readable string with the contents of this instance.

Returns
A human-readable string.

Definition at line 109 of file PolyBounds.cs.

Member Data Documentation

◆ Max

PolyVertex SharpNav.PolyBounds.Max

The upper bound of the bounding box.

Definition at line 23 of file PolyBounds.cs.

◆ Min

PolyVertex SharpNav.PolyBounds.Min

The lower bound of the bounding box.

Definition at line 18 of file PolyBounds.cs.


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