# CreateFromCenterAndHalfExtents(float3, float3)

> Creates the AABB from a center and half extents.

## Definition

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

```csharp
public static MinMaxAABB CreateFromCenterAndHalfExtents(float3 center, float3 halfExtents)
```

### Parameters

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

### Returns

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

### Remarks

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