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

> ILampArray::GetBoundingBox

# ILampArray::GetBoundingBox

ILampArray を包含する論理的な 3D バウンディング ボックスを返します。

## 構文

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

### パラメーター

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

バウンディング ボックスの値です。

### 戻り値

Type: void

## 解説

バウンディング ボックスの原点 (ゼロ点) は、ボックスの最も上、最も奥、左端の角です。[ILampInfo::GetPosition](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition) の結果は、この原点に対して方向付けられています。

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

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

以下は、キーボードのバウンディング ボックスの例です。

<img src="https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxkbd.png?fit=max&auto=format&n=gzrdvT5kpqAXKEQt&q=85&s=2332b170bdd3aca9c71e4117e5efd462" alt="キーボードのバウンディング ボックス" width="1054" height="785" data-path="images/gdk/reference/lamparrayboundingboxkbd.png" />

以下は、マウスのバウンディング ボックスの例です。

<img src="https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxmouse.png?fit=max&auto=format&n=gzrdvT5kpqAXKEQt&q=85&s=4ca1a174145c554028f92258dd9e2653" alt="マウスのバウンディング ボックス" width="794" height="645" data-path="images/gdk/reference/lamparrayboundingboxmouse.png" />

## 要件

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

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

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

## 関連項目

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


## Related topics

- [LampArrayPosition](/ja-jp/reference/lighting/lamparray/structs/lamparrayposition.md)
- [ILampInfo::GetPosition](/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [LampArray エフェクト](/ja-jp/build/core-features/common/lighting/lighting-effects.md)
- [ILampArray::GetLampArrayKind](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlamparraykind.md)
- [ILampArray::GetLampCount](/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
