getPose
Converts a coordinate and altitude to an AR pose using the provided localization snapshot....
Declaration
func getPose(localization: Vps2Localization, location: CLLocation) -> Vps2Pose?
Summary
Overload 1
func getPose(localization: Vps2Localization, location: GeolocationData) -> Vps2Pose?
Summary
Converts a geolocation to an AR pose using the provided localization snapshot.
- Parameters:
- localization: The localization to use for the conversion.
- location: The geolocation to convert.
- Returns: The pose in ARKit coordinate space corresponding to the given geolocation,
or nil if unavailable.
Overload 2
func getPose(localization: Vps2Localization, coordinate: CLLocationCoordinate2D, altitude: Double = 0) -> Vps2Pose?
Summary
Converts a coordinate and altitude to an AR pose using the provided localization snapshot.
- Parameters:
- localization: The localization to use for the conversion.
- coordinate: The coordinate to convert.
- altitude: The altitude in metres. Defaults to 0.
- Returns: The pose in the device's AR coordinate space, or nil if unavailable.
Converts a CLLocation to an AR pose using the provided localization snapshot.
- Parameters:
- localization: The localization to use for the conversion.
- location: The CLLocation to convert.
- Returns: The pose in the device's AR coordinate space, or
nilif unavailable.