SpatialBoundingOrientedBox SpatialBoundingOrientedBox SpatialBoundingOrientedBox SpatialBoundingOrientedBox Struct

Definition

An oriented bounding box in the user's surroundings, with coordinates expressed in meters.

public : struct SpatialBoundingOrientedBoxpublic struct SpatialBoundingOrientedBoxPublic Structure SpatialBoundingOrientedBox// You can use this struct in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Remarks

The SpatialBoundingOrientedBox is defined by its center and extents, plus an orientation relative to the coordinate system's axes. Its coordinates are expressed in meters, and are meaningful in a specific coordinate system usually specified alongside the box.

Fields

Center Center Center Center

The position of the center of the bounding box.

public : field Vector3 Centerpublic field Vector3 CenterPublic Field Center// You can use this field in JavaScript.
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Extents Extents Extents Extents

The size of the bounding box along each axis, prior to rotation.

public : field Vector3 Extentspublic field Vector3 ExtentsPublic Field Extents// You can use this field in JavaScript.
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Orientation Orientation Orientation Orientation

The rotation of the bounding box, relative to the coordinate system's axes.

public : field Quaternion Orientationpublic field Quaternion OrientationPublic Field Orientation// You can use this field in JavaScript.
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)