> ## 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.

# Méthode ILampArray::GetBoundingBox

> Retourne le cadre englobant 3D logique qui englobe tous les Lamps d'un périphérique LampArray, exprimé en millimètres à partir de l'origine du périphérique.

# ILampArray::GetBoundingBox

Retourne le cadre englobant 3D logique de l'ILampArray.

## Syntaxe

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

### Paramètres

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

La valeur du cadre englobant.

### Valeur de retour

Type : void

## Remarques

Le point d'origine (zéro) du cadre englobant est le coin supérieur gauche le plus éloigné du cadre. Les résultats de [ILampInfo::GetPosition](/fr/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition) sont orientés par rapport à ce point d'origine.

X correspond à la largeur, croissante de gauche à droite.\
Y correspond à la hauteur, croissante du plus éloigné au plus proche.\
Z correspond à la profondeur, croissante de haut en bas.

Les valeurs sont mesurées en mètres.

Voici un exemple de cadre englobant pour un clavier :

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

Voici un exemple de cadre englobant pour une souris :

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

## Configuration requise

**En-tête :** LampArray.h

**Bibliothèque :** xgameplatform.lib

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](/fr/build/core-features/common/lighting/gc-lighting-toc)\
[LampArrayPosition](/fr/reference/lighting/lamparray/structs/lamparrayposition)\
[ILampArray](/fr/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [ILampArray::GetBoundingBox](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)
- [ILampArray::GetBoundingBox method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)
- [Método ILampArray::GetBoundingBox](/es/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)
- [LampArrayPosition](/ko/reference/lighting/lamparray/structs/lamparrayposition.md)
- [LampArrayPosition struct reference](/reference/lighting/lamparray/structs/lamparrayposition.md)
