getPose
Declaration
Summary
Returns
The pose in ARKit coordinate space corresponding to the given geolocation,
or nil if VPS2 has not localized yet.
Parameters
| Name | Type | Summary |
|---|---|---|
| localization | Vps2Localization | The localization to use for the conversion. |
| location | GeolocationData | The geolocation to convert. |
Overload 1
Summary
Converts a CLLocation to an AR pose using the latest localization.
Returns
The pose in the device's AR coordinate space, or nil if VPS2 has not
localized yet.
Parameters
| Name | Type | Summary |
|---|---|---|
| localization | Vps2Localization | The localization to use for the conversion. |
| location | GeolocationData | The geolocation to convert. |
Overload 2
Summary
Converts a geolocation to an AR pose using the provided localization snapshot.
In most cases you want the overload that uses the latest localization automatically; use
this one only when a batch of geolocations must share a single snapshot.
Returns
The pose in ARKit coordinate space corresponding to the given geolocation,
or nil if localization has no tracking state.
Parameters
| Name | Type | Summary |
|---|---|---|
| localization | Vps2Localization | The localization to use for the conversion. |
| location | GeolocationData | The geolocation to convert. |
Overload 3
Summary
Converts a CLLocation to an AR pose using the provided localization snapshot.
Returns
The pose in the device's AR coordinate space, or nil if localization
has no tracking state.
Parameters
| Name | Type | Summary |
|---|---|---|
| localization | Vps2Localization | The localization to use for the conversion. |
| location | GeolocationData | The geolocation to convert. |
Overload 4
Summary
Converts a coordinate and altitude to an AR pose using the latest localization.
Returns
The pose in the device's AR coordinate space, or nil if VPS2 has not
localized yet.
Parameters
| Name | Type | Summary |
|---|---|---|
| localization | Vps2Localization | The localization to use for the conversion. |
| location | GeolocationData | The geolocation to convert. |
Overload 5
Summary
Converts a coordinate and altitude to an AR pose using the provided localization snapshot.
Returns
The pose in the device's AR coordinate space, or nil if localization
has no tracking state.
Parameters
| Name | Type | Summary |
|---|---|---|
| localization | Vps2Localization | The localization to use for the conversion. |
| location | GeolocationData | The geolocation to convert. |
Converts a geolocation to an AR pose using the latest localization.
Equivalent to
getPose(localization:location:)withgetLatestLocalization().