STRUCT
WpsLocation
public struct WpsLocation: CustomStringConvertible
Contains world positioning data from the WPS (World Positioning System).
WpsLocation provides global positioning information that combines GPS/GNSS
data with visual positioning for enhanced accuracy and reliability.
Overview
WPS location data includes:
- Reference GPS coordinates (latitude, longitude, altitude)
- Transformation matrix for coordinate conversions
- Status information about positioning quality
Example Usage
let (status, location) = wpsSession.latestLocation()
if status.isOk() {
print("GPS Coordinates: \(location.referenceLatitudeDegrees), \(location.referenceLongitudeDegrees)")
print("Altitude: \(location.referenceAltitudeMetres) meters")
print("Status: \(location.status)")
// Use the transformation matrix for coordinate conversions
let worldPosition = location.trackingToRelativeEdn
placeARContent(at: worldPosition)
}
Properties
referenceLatitudeDegrees
public let referenceLatitudeDegrees: Double
Reference latitude in degrees (WGS84 coordinate system).
This represents the GPS latitude of the reference point used for WPS positioning calculations.
referenceLongitudeDegrees
public let referenceLongitudeDegrees: Double
Reference longitude in degrees (WGS84 coordinate system).
This represents the GPS longitude of the reference point used for WPS positioning calculations.
referenceAltitudeMetres
public let referenceAltitudeMetres: Double
Reference altitude in meters above sea level.
This represents the GPS altitude of the reference point used for WPS positioning calculations.
trackingToRelativeEdn
public let trackingToRelativeEdn: simd_float4x4
Transformation matrix from tracking to relative coordinate system.
This 4x4 transformation matrix converts between the tracking coordinate system and the relative coordinate system used for AR content placement.
description
public var description: String