Struct XrExtent2Df
Extent in two dimensions.
Implements
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct XrExtent2Df : IEquatable<XrExtent2Df>
Constructors
XrExtent2Df(float, float)
Construct an instance.
Declaration
public XrExtent2Df(float width, float height)
Parameters
Type | Name | Description |
---|---|---|
float | width | The width value. |
float | height | The height value. |
Fields
Height
The floating-point height of the extent.
Declaration
public float Height
Field Value
Type | Description |
---|---|
float |
Width
The floating-point width of the extent.
Declaration
public float Width
Field Value
Type | Description |
---|---|
float |
Methods
Equals(object)
Compares for equality.
Two instances are equal if their bits are exactly identical for the Width
and Height
fields.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The other object. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(XrExtent2Df)
Compares for equality.
Two instances are equal if their bits are exactly identical for the Width
and Height
fields.
Declaration
public bool Equals(XrExtent2Df other)
Parameters
Type | Name | Description |
---|---|---|
XrExtent2Df | other | The other instance. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Generate a unique hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |