XRVps2Localization
Declaration
public struct XRVps2Localization : ValueType, IEquatable<XRVps2Localization>Summary
Spatial mapping between the device’s AR tracking space and real-world geolocation, as determined by VPS2.
Remarks
This relates two origins: the AR session space origin and a geographic reference point. It is not relative to the current camera pose, and does not change as the device moves; it changes only when VPS2 refines or replaces its localization. To convert a specific pose or geolocation, pass it to GetPose or TryGetGeolocation. All distances are in meters.
Notice
The localization is a point-in-time snapshot. Updates to VPS2’s estimate are not reflected in previously retrieved localization instances.
Fields
| Name | Type | Summary |
|---|---|---|
| LocalizedAsset | Nullable<Vps2LocalizedAsset> | |
| TrackingState | Vps2TrackingState | The state of VPS2 tracking. The geolocation fields in this struct are only valid if the tracking state is not Unavailable. |
Methods
| Name | Type | Summary |
|---|---|---|
| Equals | bool | - |
| GetHashCode | int | - |
Relationships
implements: System.IEquatable
Null until a visual localization succeeds against a submitted asset. Place the
asset's content with TryGetAssetTrackingData.