# Encapsulate

> Encapsulates the given AABB.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics.Geometry](/engine/6000.6/script-reference/unity/mathematics/geometry.md)
* **Assembly:** UnityEngine.MathematicsModule

## Encapsulate(MinMaxAABB)

Encapsulates the given AABB.

```csharp
public void Encapsulate(MinMaxAABB aabb)
```

### Parameters

**** (\[MinMaxAABB]\(/engine/6000.6/script-reference/unity/mathematics/geometry/minmaxaabb)): AABB to encapsulate.

### Remarks

Modifies this AABB so that it contains the given AABB. If the given AABB is already contained by this AABB, then this AABB doesn't change.

Additional Resources: [MinMaxAABB.Contains](/engine/6000.6/script-reference/unity/mathematics/geometry/minmaxaabb/contains.md)

## Encapsulate(float3)

Encapsulate the given point.

```csharp
public void Encapsulate(float3 point)
```

### Parameters

**** (\[float3]\(/engine/6000.6/script-reference/unity/mathematics/float3)): Point to encapsulate.

### Remarks

Modifies this AABB so that it contains the given point. If the given point is already contained by this AABB, then this AABB doesn't change.

Additional Resources: [MinMaxAABB.Contains](/engine/6000.6/script-reference/unity/mathematics/geometry/minmaxaabb/contains.md)
