# BBox.FromPositionAndSize

## Overload 1

```csharp
static BBox FromPositionAndSize(in Vector3 center, float size = 0)
```

Creates an AABB at given position `center` and given `size` which acts as a diameter of a sphere contained within the AABB.

### Parameters

- `in center` (`Vector3`)
- `size` (`float`), default `0`

### Returns

`BBox`

## Overload 2

```csharp
static BBox FromPositionAndSize(Vector3 center, Vector3 size)
```

Creates an AABB at given position `center` and given `size` a.k.a. "extents".

### Parameters

- `center` (`Vector3`)
- `size` (`Vector3`)

### Returns

`BBox`

Declared in [BBox](/api/BBox).
Assembly: `Sandbox.System`.
