C Specification

An XrBoxf structure describes the pose and extents of an oriented box.

// Provided by XR_VERSION_1_1
typedef struct XrBoxf {
    XrPosef        center;
    XrExtent3Df    extents;
} XrBoxf;

Members

Member Descriptions
  • center is an XrPosef defining the center position and orientation of the oriented bounding box bound within the reference frame of the corresponding XrSpace.

  • extents is an XrExtent3Df defining the edge-to-edge length of the box along each dimension with center as the center.

Description

The runtime must return XR_ERROR_VALIDATION_FAILURE if width, height or depth values are negative.

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2025 The Khronos Group Inc.