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

# ILampInfo::GetPosition method

> Returns the 3D position of a Lamp relative to the origin of its LampArray bounding box, used to arrange Lamps spatially for lighting effects.

# ILampInfo::GetPosition

Returns the 3D position of the Lamp relative to the origin of the LampArray's bounding box.

## Syntax

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

### Parameters

This method has no parameters.

### Return value

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

The position of the Lamp.

## Remarks

The origin (zero) point of the bounding box is the upmost, farthest, left-hand corner of the box.

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.

Position values are measured in meters.

The following is an example of the position of a branding Lamp on a keyboard:

<img src="https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lampinfoposition.png?fit=max&auto=format&n=gzrdvT5kpqAXKEQt&q=85&s=96636e1a82b7fe5ef0e091cfa3993147" alt="Keyboard lamp position" width="802" height="698" data-path="images/gdk/reference/lampinfoposition.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)\
[ILampArray::GetBoundingBox](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampArray::GetLampInfo method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [ILampInfo::GetIndex method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampInfo::GetPurposes method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [ILampInfo::GetNearestSupportedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetFixedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor.md)
