Struct XRNearFarPlanes
Represents the near and far planes of a depth image.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public readonly struct XRNearFarPlanes : IEquatable<XRNearFarPlanes>
Constructors
XRNearFarPlanes(float, float)
Constructor.
Declaration
public XRNearFarPlanes(float nearZ, float farZ)
Parameters
| Type | Name | Description |
|---|---|---|
| float | nearZ | The near plane, in meters. |
| float | farZ | The far plane, in meters. |
Properties
farZ
The far plane, in meters.
Declaration
public float farZ { get; }
Property Value
| Type | Description |
|---|---|
| float |
nearZ
The near plane, in meters.
Declaration
public float nearZ { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
Equals(object)
Indicates whether this instance is equal to another object.
Casts the other object to XRNearFarPlanes, then returns Equals(XRNearFarPlanes).
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | An object to compare with this instance. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Equals(XRNearFarPlanes)
Indicates whether this instance is equal to another object of the same type.
Declaration
public bool Equals(XRNearFarPlanes other)
Parameters
| Type | Name | Description |
|---|---|---|
| XRNearFarPlanes | other | An object to compare with this instance. |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Get a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code. |
Overrides
ToString()
Generates a string representation of this instance suitable for debugging purposes.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string. |