A 3d axis-aligned bounding box.
More...
|
| BBox3 (Vector3 min, Vector3 max) |
| Initializes a new instance of the BBox3 struct. More...
|
|
| BBox3 (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) |
| Initializes a new instance of the BBox3 struct. More...
|
|
bool | Equals (BBox3 other) |
| Compares this instance with another bounding box for equality. More...
|
|
override bool | Equals (object obj) |
| Compares this instance with another object for equality. More...
|
|
override int | GetHashCode () |
| Generates a unique hashcode for this bouding box instance. More...
|
|
override string | ToString () |
| Returns a string containing the important information for this instance of BBox3. More...
|
|
A 3d axis-aligned bounding box.
Definition at line 20 of file BBox3.cs.
◆ BBox3() [1/2]
Initializes a new instance of the BBox3 struct.
- Parameters
-
min | The minimum bounds. |
max | The maximum bounds. |
Definition at line 37 of file BBox3.cs.
◆ BBox3() [2/2]
SharpNav.Geometry.BBox3.BBox3 |
( |
float |
minX, |
|
|
float |
minY, |
|
|
float |
minZ, |
|
|
float |
maxX, |
|
|
float |
maxY, |
|
|
float |
maxZ |
|
) |
| |
Initializes a new instance of the BBox3 struct.
- Parameters
-
minX | The minimum on the X axis. |
minY | The minimum on the Y axis. |
minZ | The minimum on the Z axis. |
maxX | The maximum on the X axis. |
maxY | The maximum on the Y axis. |
maxZ | The maximum on the Z axis. |
Definition at line 52 of file BBox3.cs.
◆ Equals() [1/2]
bool SharpNav.Geometry.BBox3.Equals |
( |
BBox3 |
other | ) |
|
Compares this instance with another bounding box for equality.
- Parameters
-
other | Another bounding box. |
- Returns
- A value indicating the equality of the two boxes.
Definition at line 151 of file BBox3.cs.
◆ Equals() [2/2]
override bool SharpNav.Geometry.BBox3.Equals |
( |
object |
obj | ) |
|
Compares this instance with another object for equality.
- Parameters
-
- Returns
- A value indicating equality between the two objects.
Definition at line 161 of file BBox3.cs.
◆ GetHashCode()
override int SharpNav.Geometry.BBox3.GetHashCode |
( |
| ) |
|
Generates a unique hashcode for this bouding box instance.
- Returns
- A hash code.
Definition at line 173 of file BBox3.cs.
◆ IsValid()
static bool SharpNav.Geometry.BBox3.IsValid |
( |
ref BBox3 |
b | ) |
|
|
static |
Determines whether a bounding box is valid. Validity consists of having no NaN values and the Min vector to be less than the Max vector on all axes.
- Parameters
-
b | The bounding box to validate. |
- Returns
- A value indicating whether the bounding box is valid.
Definition at line 104 of file BBox3.cs.
◆ operator!=()
static bool SharpNav.Geometry.BBox3.operator!= |
( |
BBox3 |
left, |
|
|
BBox3 |
right |
|
) |
| |
|
static |
Compares two bounding boxes for inequality.
- Parameters
-
left | The first bounding box. |
right | The second bounding box. |
- Returns
- A value indicating the inequality of the two boxes.
Definition at line 141 of file BBox3.cs.
◆ operator==()
static bool SharpNav.Geometry.BBox3.operator== |
( |
BBox3 |
left, |
|
|
BBox3 |
right |
|
) |
| |
|
static |
Compares two bounding boxes for equality.
- Parameters
-
left | The first bounding box. |
right | The second bounding box. |
- Returns
- A value indicating the equality of the two boxes.
Definition at line 130 of file BBox3.cs.
◆ Overlapping()
static bool SharpNav.Geometry.BBox3.Overlapping |
( |
ref BBox3 |
a, |
|
|
ref BBox3 |
b |
|
) |
| |
|
static |
Checks whether two boudning boxes are intersecting.
- Parameters
-
a | The first bounding box. |
b | The second bounding box. |
- Returns
- A value indicating whether the two bounding boxes are overlapping.
Definition at line 91 of file BBox3.cs.
◆ ToString()
override string SharpNav.Geometry.BBox3.ToString |
( |
| ) |
|
Returns a string containing the important information for this instance of BBox3.
- Returns
- A human-readable string representation of this instance.
Definition at line 183 of file BBox3.cs.
◆ Max
Vector3 SharpNav.Geometry.BBox3.Max |
The maximum bounds.
Definition at line 30 of file BBox3.cs.
◆ Min
Vector3 SharpNav.Geometry.BBox3.Min |
The minimum bounds.
Definition at line 25 of file BBox3.cs.
◆ Center
Vector3 SharpNav.Geometry.BBox3.Center |
|
get |
Gets the center of the box.
Definition at line 66 of file BBox3.cs.
◆ Size
Vector3 SharpNav.Geometry.BBox3.Size |
|
get |
Gets the size of the box.
Definition at line 77 of file BBox3.cs.
The documentation for this struct was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/Geometry/BBox3.cs