Struct XrExtent3Df
Represents the extents of a 3D bounding box. The width, height, and depth values must be non-negative.
Provided by XR_VERSION_1_1.
Implements
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrExtent3Df : IEquatable<XrExtent3Df>
Constructors
XrExtent3Df(float, float, float)
Construct an instance.
Declaration
public XrExtent3Df(float width, float height, float depth)
Parameters
| Type | Name | Description |
|---|---|---|
| float | width | The width value. |
| float | height | The height value. |
| float | depth | The depth value. |
Properties
depth
The floating-point depth of the extent (z).
Declaration
public float depth { get; }
Property Value
| Type | Description |
|---|---|
| float |
height
The floating-point height of the extent (y).
Declaration
public float height { get; }
Property Value
| Type | Description |
|---|---|
| float |
width
The floating-point width of the extent (x).
Declaration
public float width { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
Equals(object)
Compares for equality. Two instances are equal if their bits are exactly
identical for the width, height, and depth properties.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The other object. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
Equals(XrExtent3Df)
Compares for equality. Two instances are equal if their bits are exactly
identical for the width, height, and depth properties.
Declaration
public bool Equals(XrExtent3Df other)
Parameters
| Type | Name | Description |
|---|---|---|
| XrExtent3Df | other | The other instance. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode()
Generates a unique hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |