C Specification

A two-dimensional vector is defined by the XrVector2f structure:

typedef struct XrVector2f {
    float    x;
    float    y;
} XrVector2f;

Members

Member Descriptions
  • x is the x coordinate of the vector.

  • y is the y coordinate of the vector.

Description

If used to represent physical distances (rather than e.g. normalized direction) and not otherwise specified, values must be in meters.

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 (c) 2014-2021, The Khronos Group Inc.