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

# GetPosition

> ILampInfo::GetPosition

# ILampInfo::GetPosition

LampArray のバウンディング ボックスの原点に対する Lamp の 3D 位置を返します。

## 構文

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

### パラメーター

このメソッドにはパラメーターがありません。

### 戻り値

Type: [LampArrayPosition](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/structs/lamparrayposition.md)

Lamp の位置です。

## 解説

バウンディング ボックスの原点 (ゼロ点) は、ボックスの最も上、最も奥、左端の角です。

X は幅に対応し、左から右へ増加します。\
Y は高さに対応し、最も奥から最も手前へ増加します。\
Z は奥行きに対応し、上から下へ増加します。

位置の値はメートル単位で測定されます。

以下は、キーボード上のブランディング Lamp の位置の例です。

![キーボードの Lamp 位置](https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lampinfoposition.png?fit=max\&auto=format\&n=gzrdvT5kpqAXKEQt\&q=85\&s=96636e1a82b7fe5ef0e091cfa3993147)

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray::GetBoundingBox](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)\
[ILampInfo](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [LampArrayPosition](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/structs/lamparrayposition.md)
- [GetBoundingBox](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getboundingbox.md)
- [LampArray エフェクト](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/lighting-effects.md)
- [ILampInfo (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [GetXmaDecodePositionForSample](https://docs.xbox.com/ja-jp/reference/audio/xma2defs/functions/getxmadecodepositionforsample.md)
