C Specification

An XrSpheref structure describes the center and radius of a sphere bounds.

// Provided by XR_VERSION_1_1
typedef struct XrSpheref {
    XrPosef    center;
    float      radius;
} XrSpheref;

Members

Member Descriptions
  • center is an XrPosef representing the pose of the center of the sphere within the reference frame of the corresponding XrSpace.

  • radius is the finite non-negative radius of the sphere.

Description

The runtime must return XR_ERROR_VALIDATION_FAILURE if radius is not a finite positive value.

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.