Struct XrQuaternionf
Unit Quaternion.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct XrQuaternionf
Constructors
XrQuaternionf(float, float, float, float)
Initializes and returns an instance of XrQuaternionf with the provided parameters.
Declaration
public XrQuaternionf(float x, float y, float z, float w)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The x coordinate of the quaternion. |
| float | y | The y coordinate of the quaternion. |
| float | z | The z coordinate of the quaternion. |
| float | w | The w coordinate of the quaternion. |
XrQuaternionf(Quaternion)
Initializes and returns an instance of XrQuaternionf with the provided parameters.
Declaration
public XrQuaternionf(Quaternion quaternion)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | quaternion | Quaternion struct coming from Unity that is translated into the OpenXR XrQuaternionf struct. |
Fields
W
The w coordinate of the quaternion.
Declaration
public float W
Field Value
| Type | Description |
|---|---|
| float |
X
The x coordinate of the quaternion.
Declaration
public float X
Field Value
| Type | Description |
|---|---|
| float |
Y
The y coordinate of the quaternion.
Declaration
public float Y
Field Value
| Type | Description |
|---|---|
| float |
Z
The z coordinate of the quaternion.
Declaration
public float Z
Field Value
| Type | Description |
|---|---|
| float |