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