Bounds::Bounds |
( |
Vector3 |
center, |
|
|
float |
width |
|
) |
| |
Creates a Bounds at the given center and given width across all axes.
- Parameters
-
Bounds::Bounds |
( |
Vector3 |
center, |
|
|
float |
xWidth, |
|
|
float |
yWidth, |
|
|
float |
zWidth |
|
) |
| |
Creates a bounds at the given center with the given widths.
- Parameters
-
center | The Vector3 for this Bounds to be centered at |
xWidth | The width of this Bounds along the global X-axis |
yWidth | The width of this Bounds along the global Y-axis |
zWidth | The width of this Bounds along the global Z-axis |
Returns the center point.
- Returns
- The center as a Vector3
Returns corner of the Bounds along all the positive widths.
- Returns
- The maximum bound as a Vector3
Returns corner of the Bounds along all the negative widths.
- Returns
- The minimum bound as a Vector3
Calculates and returns the furthest corner of the bounds away from the given normal vector.
- Parameters
-
normal | The normalized Vector3 that we want to get the corner from |
- Returns
- The corner of the bounds furthest away from the given normal
Calculates and returns the furthest corner of the bounds along the given normal vector.
- Parameters
-
normal | The normalized Vector3 that we want to get the corner from |
- Returns
- The corner of the bounds furthest along the given normal
float Bounds::getXWidth |
( |
| ) |
|
Returns the width along the X-axis.
- Returns
- The width of the Bounds along the X-axis
float Bounds::getYWidth |
( |
| ) |
|
Returns the width along the Y-axis.
- Returns
- The width of the Bounds along the Y-axis
float Bounds::getZWidth |
( |
| ) |
|
Returns the width along the Z-axis.
- Returns
- The width of the Bounds along the Z-axis
bool Bounds::isCollidingWithBounds |
( |
Bounds |
other | ) |
|
Determines whether or not this Bounds collides with another Bounds.
- Parameters
-
other | The other Bounds to test against |
- Returns
- True if this and the other Bounds intersect anywhere
The documentation for this class was generated from the following files: