Struct XrVector2f
Two-dimensional vector.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct XrVector2f
Constructors
XrVector2f(float, float)
Constructor for two float values.
Declaration
public XrVector2f(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x coordinate of the vector. |
float | y | The y coordinate of the vector. |
XrVector2f(Vector2)
Initializes and returns an instance of XrVector2f with the provided parameters.
Declaration
public XrVector2f(Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | Vector2 struct coming from Unity that is translated into the OpenXR XrVector2f 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 |