Method Encapsulate
Encapsulate(Bounds, Nullable<Bounds>)
Grow the bounds to encapsulate the bounds.
Declaration
public static Bounds Encapsulate(Bounds boundA, Bounds? boundB)Parameters
| Type | Name | Description |
|---|---|---|
| Bounds | boundA | the first bounds to encapsulate. |
| Nullable<Bounds> | boundB | the second bounds to encapsulate. |
Returns
| Type | Description |
|---|---|
| Bounds | Returns the bounds that encapsulates both bounds. If |
Encapsulate(Nullable<Bounds>, Bounds)
Grow the bounds to encapsulate the bounds.
Declaration
public static Bounds Encapsulate(Bounds? boundA, Bounds boundB)Parameters
| Type | Name | Description |
|---|---|---|
| Nullable<Bounds> | boundA | the first bounds to encapsulate. |
| Bounds | boundB | the second bounds to encapsulate. |
Returns
| Type | Description |
|---|---|
| Bounds | Returns the bounds that encapsulates both bounds. If |
Encapsulate(Nullable<Bounds>, Nullable<Bounds>)
Grow the bounds to encapsulate the bounds.
Declaration
public static Bounds? Encapsulate(Bounds? boundA, Bounds? boundB)Parameters
| Type | Name | Description |
|---|---|---|
| Nullable<Bounds> | boundA | the first bounds to encapsulate. |
| Nullable<Bounds> | boundB | the second bounds to encapsulate. |
Returns
| Type | Description |
|---|---|
| Nullable<Bounds> | Returns the bounds that encapsulates both bounds. If one of the supplied bounds is null, the other supplied bounds is returned. If both bounds are null, null is returned. |
Encapsulate(List<Vector3>)
Encapsulates a collection of vectors into a bounds.
Declaration
public static Bounds Encapsulate(List<Vector3> vectors)Parameters
| Type | Name | Description |
|---|---|---|
| List<Vector3> | vectors | The vectors to encapsulate. |
Returns
| Type | Description |
|---|---|
| Bounds | Returns the bounds that contains the supplied vectors. |