Struct XRPointCloud
Represents the session relative data for the XRPoint
Inherited Members
Namespace: UnityEngine .XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public struct XRPointCloud : ITrackable, IEquatable<XRPointCloud>
Constructors
XRPointCloud(TrackableId, Pose, TrackingState, IntPtr)
Constructs a new XRPoint
Declaration
public XRPointCloud(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr)
Parameters
Type | Name | Description |
---|---|---|
Trackable |
trackableId | The Trackable |
Pose | pose | The |
Tracking |
trackingState | The Tracking |
Int |
nativePtr | The native pointer associated with the point cloud. |
Properties
defaultValue
Gets a default-initialized XRPointPose.identity
instead of zero-initialized).
Declaration
public static XRPointCloud defaultValue { get; }
Property Value
Type | Description |
---|---|
XRPoint |
nativePtr
Get the native pointer associated with this point cloud.
Declaration
public IntPtr nativePtr { get; }
Property Value
Type | Description |
---|---|
Int |
Remarks
The data this pointer points to is implementation defined.
pose
Get the Pose
associated with this point cloud.
Declaration
public Pose pose { get; }
Property Value
Type | Description |
---|---|
Pose |
Remarks
Point cloud points are relative to this pose.
trackableId
Get the Trackable
Declaration
public TrackableId trackableId { get; }
Property Value
Type | Description |
---|---|
Trackable |
trackingState
Get the Tracking
Declaration
public TrackingState trackingState { get; }
Property Value
Type | Description |
---|---|
Tracking |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(XRPointCloud)
Tests for equality.
Declaration
public bool Equals(XRPointCloud other)
Parameters
Type | Name | Description |
---|---|---|
XRPoint |
other | The other XRPoint |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code generated from this object's fields. |
Overrides
Operators
operator ==(XRPointCloud, XRPointCloud)
Tests for equality. Same as Equals(XRPoint
Declaration
public static bool operator ==(XRPointCloud lhs, XRPointCloud rhs)
Parameters
Type | Name | Description |
---|---|---|
XRPoint |
lhs | The left-hand side of the comparison. |
XRPoint |
rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|
operator !=(XRPointCloud, XRPointCloud)
Tests for inequality. Same as !
Equals(XRPoint
Declaration
public static bool operator !=(XRPointCloud lhs, XRPointCloud rhs)
Parameters
Type | Name | Description |
---|---|---|
XRPoint |
lhs | The left-hand side of the comparison. |
XRPoint |
rhs | The right-hand side of the comparison. |
Returns
Type | Description |
---|---|
bool |
|