> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/math.getcenter.md).

# math.getCenter

> **getCenter**(`bb`): [`Vec3`](/api/net/minecraft/util/vec3.md)

The point in the middle of a bounding box.

### Parameters

#### bb

[`AxisAlignedBB`](/api/net/minecraft/util/axisalignedbb.md)

The bounding box to take the center of.

### Returns

[`Vec3`](/api/net/minecraft/util/vec3.md)

The center of the box, or null when no box was given.
