SpatialBoundingBox Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An axis-aligned bounding box in the user's surroundings, with coordinates expressed in meters.
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
struct SpatialBoundingBox
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public struct SpatialBoundingBox
var spatialBoundingBox = {
center : /* Your value */,
extents : /* Your value */
}
Public Structure SpatialBoundingBox
- Inheritance
-
SpatialBoundingBox
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|
Remarks
The SpatialBoundingBox is defined by its center and extents, with its edges aligned to the X, Y, and Z axes. Its coordinates are expressed in meters, and are meaningful in a specific coordinate system usually specified alongside the box.
Fields
Center |
The position of the center of the bounding box. |
Extents |
The distance from the center of the bounding box to its edges, along each axis. |