> ## 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 ILampInfo::GetPosition

> Retourne la position 3D d'une Lamp par rapport à l'origine du cadre englobant de son LampArray, ce qui permet de disposer les Lamps dans l'espace pour les effets d'éclairage.

# ILampInfo::GetPosition

Retourne la position 3D de la Lamp par rapport à l'origine du cadre englobant du LampArray.

## Syntaxe

```cpp theme={null}
LampArrayPosition GetPosition(
)
```

### Paramètres

Cette méthode n'a aucun paramètre.

### Valeur de retour

Type : [LampArrayPosition](/fr-CA/reference/lighting/lamparray/structs/lamparrayposition)

La position de la Lamp.

## Remarques

Le point d'origine (zéro) du cadre englobant est le coin supérieur gauche le plus éloigné du cadre.

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 de position sont mesurées en mètres.

Voici un exemple de la position d'une Lamp de marque sur un clavier :

<img src="https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lampinfoposition.png?fit=max&auto=format&n=gzrdvT5kpqAXKEQt&q=85&s=96636e1a82b7fe5ef0e091cfa3993147" alt="Position d'une Lamp de clavier" width="802" height="698" data-path="images/gdk/reference/lampinfoposition.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-CA/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::GetBoundingBox](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox)\
[ILampInfo](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [Méthode ILampArray::GetLampInfo](/fr-CA/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [Méthode ILampInfo::GetIndex](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [Méthode ILampInfo::GetPurposes](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [Méthode ILampInfo::GetNearestSupportedColor](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [Méthode ILampInfo::GetScanCode](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
