# CreateFromCenterAndExtents(float3, float3)

> Creates the AABB from a center and extents.

## Definition

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

```csharp
public static MinMaxAABB CreateFromCenterAndExtents(float3 center, float3 extents)
```

### Parameters

**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Center of AABB.**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Full extents of AABB.

### Returns

| Type                                                                                   | Description               |
| -------------------------------------------------------------------------------------- | ------------------------- |
| [MinMaxAABB](/engine/6000.5/script-reference/unity/mathematics/geometry/minmaxaabb.md) | AABB created from inputs. |

### Remarks

This function takes full extents. It is the distance between [MinMaxAABB.Min](/engine/6000.5/script-reference/unity/mathematics/geometry/minmaxaabb/min.md) and [MinMaxAABB.Max](/engine/6000.5/script-reference/unity/mathematics/geometry/minmaxaabb/max.md). If you have half extents, you can call [MinMaxAABB.CreateFromCenterAndHalfExtents](/engine/6000.5/script-reference/unity/mathematics/geometry/minmaxaabb/createfromcenterandhalfextents.md).
