Language

LampArray.BoundingBox Property

Definition

Gets the logical bounding box encompassing the LampArray.

public:
 property float3 BoundingBox { float3 get(); };
float3 BoundingBox();
public Vector3 BoundingBox { get; }
var vector3 = lampArray.boundingBox;
Public ReadOnly Property BoundingBox As Vector3

Property Value

Vector3 Vector3

float3

The value of the bounding box.

Examples

LampArray sample

Demonstrates how to control RGB lighting of peripheral devices using the Windows.Devices.Lights and Windows.Devices.Lights.Effects APIs.

AutoRGB Sample

Demonstrates how to extract a single, representative color from a desktop screen and use it to illuminate LED lamps on a connected RGB device.

Remarks

  • X corresponds to Width.
  • Y corresponds to Height.
  • Z corresponds to Depth.

Values are measured in meters.

The coordinate system is left-handed, with the origin at the front-top-left corner of the bounding box:

  • +X extends to the right.
  • +Y extends downward.
  • +Z extends away from the user (into the device).

Origin of Positions is the upmost, top, left corner of the box.

Bounding box extents are derived from the device's HID LampArray descriptor, which reports dimensions in micrometers (µm). The WinRT API converts these values to meters (µm ÷ 1,000,000).

Applies to

See also