Definition at line 8 of file Bounds.cs.
◆ Bounds()
Creates a new Bounds.
- Parameters
-
center | The location of the origin of the Bounds. |
size | The dimensions of the Bounds. |
Definition at line 94 of file Bounds.cs.
◆ Encapsulate() [1/2]
void FalcoEngine.Bounds.Encapsulate |
( |
Bounds |
bounds | ) |
|
Grow the bounds to encapsulate the bounds.
- Parameters
-
Definition at line 153 of file Bounds.cs.
◆ Encapsulate() [2/2]
void FalcoEngine.Bounds.Encapsulate |
( |
Vector3 |
point | ) |
|
Grows the Bounds to include the point.
- Parameters
-
Definition at line 144 of file Bounds.cs.
◆ Equals() [1/2]
bool FalcoEngine.Bounds.Equals |
( |
Bounds |
other | ) |
|
◆ Equals() [2/2]
override bool FalcoEngine.Bounds.Equals |
( |
object |
other | ) |
|
◆ Expand() [1/2]
void FalcoEngine.Bounds.Expand |
( |
float |
amount | ) |
|
Expand the bounds by increasing its size by amount along each side.
- Parameters
-
Definition at line 163 of file Bounds.cs.
◆ Expand() [2/2]
void FalcoEngine.Bounds.Expand |
( |
Vector3 |
amount | ) |
|
Expand the bounds by increasing its size by amount along each side.
- Parameters
-
Definition at line 173 of file Bounds.cs.
◆ GetHashCode()
override int FalcoEngine.Bounds.GetHashCode |
( |
| ) |
|
◆ Intersects()
bool FalcoEngine.Bounds.Intersects |
( |
Bounds |
bounds | ) |
|
Does another bounding box intersect with this bounding box?
- Parameters
-
Definition at line 182 of file Bounds.cs.
◆ operator!=()
static bool FalcoEngine.Bounds.operator!= |
( |
Bounds |
lhs, |
|
|
Bounds |
rhs |
|
) |
| |
|
static |
◆ operator==()
static bool FalcoEngine.Bounds.operator== |
( |
Bounds |
lhs, |
|
|
Bounds |
rhs |
|
) |
| |
|
static |
◆ SetMinMax()
Sets the bounds to the min and max value of the box.
- Parameters
-
Definition at line 134 of file Bounds.cs.
◆ ToString() [1/2]
override string FalcoEngine.Bounds.ToString |
( |
| ) |
|
Returns a nicely formatted string for the bounds.
- Parameters
-
Definition at line 191 of file Bounds.cs.
◆ ToString() [2/2]
string FalcoEngine.Bounds.ToString |
( |
string |
format | ) |
|
Returns a nicely formatted string for the bounds.
- Parameters
-
Definition at line 200 of file Bounds.cs.
◆ center
The center of the bounding box.
Definition at line 17 of file Bounds.cs.
◆ extents
The extents of the Bounding Box. This is always half of the size of the Bounds.
Definition at line 47 of file Bounds.cs.
◆ max
The maximal point of the box. This is always equal to center+extents.
Definition at line 77 of file Bounds.cs.
◆ min
The minimal point of the box. This is always equal to center-extents.
Definition at line 62 of file Bounds.cs.
◆ size
The total size of the box. This is always twice as large as the extents.
Definition at line 32 of file Bounds.cs.
The documentation for this struct was generated from the following file: