C Specification

The XrPlaneDetectorOrientationEXT enumeration identifies the different general categories of orientations of detected planes.

// Provided by XR_EXT_plane_detection
typedef enum XrPlaneDetectorOrientationEXT {
    XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT = 0,
    XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT = 1,
    XR_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT = 2,
    XR_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT = 3,
    XR_PLANE_DETECTOR_ORIENTATION_MAX_ENUM_EXT = 0x7FFFFFFF
} XrPlaneDetectorOrientationEXT;

Description

The enums have the following meanings:

Enum Description

XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT

The detected plane is horizontal and faces upward (e.g. floor).

XR_PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT

The detected plane is horizontal and faces downward (e.g. ceiling).

XR_PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT

The detected plane is vertical (e.g. wall).

XR_PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT

The detected plane has an arbitrary, non-vertical and non-horizontal orientation.

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-2024, The Khronos Group Inc.