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

# ILampArray::GetBoundingBox method

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

# ILampArray::GetBoundingBox

Returns the logical 3D bounding box encompassing the ILampArray.

## Syntax

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

### Parameters

*boundingBox*  \_Out\_\
Type: [LampArrayPosition\*](/reference/lighting/lamparray/structs/lamparrayposition)

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](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition) 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:

<img src="https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxkbd.png?fit=max&auto=format&n=gzrdvT5kpqAXKEQt&q=85&s=2332b170bdd3aca9c71e4117e5efd462" alt="Keyboard bounding box" width="1054" height="785" data-path="images/gdk/reference/lamparrayboundingboxkbd.png" />

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

<img src="https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxmouse.png?fit=max&auto=format&n=gzrdvT5kpqAXKEQt&q=85&s=4ca1a174145c554028f92258dd9e2653" alt="Mouse bounding box" width="794" height="645" data-path="images/gdk/reference/lamparrayboundingboxmouse.png" />

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

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

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[LampArrayPosition](/reference/lighting/lamparray/structs/lamparrayposition)\
[ILampArray](/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [ILampArray::GetLampArrayKind method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlamparraykind.md)
- [ILampArray::GetLampCount method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
- [ILampArray::GetLampInfo method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [ILampArray::GetIsEnabled method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getisenabled.md)
- [ILampArray::GetIndicesForPurposes method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getindicesforpurposes.md)
