> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetBoundingBox

> Returns the logical 3D bounding box that encompasses every Lamp on a LampArray peripheral, expressed in millimeters from the device origin.

Returns the logical 3D bounding box encompassing the ILampArray.

## Syntax

```cpp theme={null}
void GetBoundingBox(
    LampArrayPosition* boundingBox)
```

### Parameters

*boundingBox*  \_Out\_\
Type: [LampArrayPosition\*](https://docs.xbox.com/reference/lighting/lamparray/structs/lamparrayposition.md)

The value of the bounding box.

### Return value

Type: void

## Remarks

The origin (zero) point of the bounding box is the upmost, farthest, left-hand corner of the box. The results of [ILampInfo::GetPosition](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md) are oriented with respect to this origin point.

X corresponds to Width, ascending from left to right.\
Y corresponds to Height, ascending from farthest to closest.\
Z corresponds to Depth, ascending from top to bottom.

Values are measured in meters.

The following is an example of a bounding box for a keyboard:

![Keyboard bounding box](https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxkbd.png?fit=max\&auto=format\&n=gzrdvT5kpqAXKEQt\&q=85\&s=2332b170bdd3aca9c71e4117e5efd462)

The following is an example of a bounding box for a mouse:

![Mouse bounding box](https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxmouse.png?fit=max\&auto=format\&n=gzrdvT5kpqAXKEQt\&q=85\&s=4ca1a174145c554028f92258dd9e2653)

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](https://docs.xbox.com/build/core-features/common/lighting/gc-lighting-toc.md)\
[LampArrayPosition](https://docs.xbox.com/reference/lighting/lamparray/structs/lamparrayposition.md)\
[ILampArray](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [GetPosition](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [LampArrayPosition](https://docs.xbox.com/reference/lighting/lamparray/structs/lamparrayposition.md)
- [LampArray Effects](https://docs.xbox.com/build/core-features/common/lighting/lighting-effects.md)
- [ILampArray (Interface contents)](https://docs.xbox.com/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [D3D12_RAYTRACING_AABB (XBOX Series consoles)](https://docs.xbox.com/reference/graphics/d3d12/structs/d3d12_raytracing_aabb_public.md)
