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

# GetBoundingBox

> ILampArray::GetBoundingBox

# ILampArray::GetBoundingBox

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

## 構文

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

### パラメーター

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

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

### 戻り値

Type: void

## 解説

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

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

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

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

![キーボードのバウンディング ボックス](https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxkbd.png?fit=max\&auto=format\&n=gzrdvT5kpqAXKEQt\&q=85\&s=2332b170bdd3aca9c71e4117e5efd462)

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

![マウスのバウンディング ボックス](https://mintcdn.com/microsoft-4404708b/gzrdvT5kpqAXKEQt/images/gdk/reference/lamparrayboundingboxmouse.png?fit=max\&auto=format\&n=gzrdvT5kpqAXKEQt\&q=85\&s=4ca1a174145c554028f92258dd9e2653)

## 要件

**ヘッダー:** 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)\
[LampArrayPosition](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/structs/lamparrayposition.md)\
[ILampArray](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [GetPosition](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [LampArrayPosition](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/structs/lamparrayposition.md)
- [LampArray エフェクト](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/lighting-effects.md)
- [ILampArray (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [D3D12_BOX](https://docs.xbox.com/ja-jp/reference/graphics/d3d12/structs/d3d12_box_public.md)
