Skip to main content
API Reference com.nianticspatial.nsdk.vps2

Vps2Localization

Spatial mapping between the device's AR coordinate space and real-world geolocation, as determined by VPS2. If [trackingState] is [Vps2TrackingState.UNAVAILABLE], conversions are invalid and native conversion APIs will throw ArdkInvalidOperationStatusException.

Declaration

data class Vps2Localization

Properties

NameTypeSummary
isAvailableBoolean
-
referenceAltitudeMetresDouble
Estimated altitude of the camera in metres.
referenceLatitudeDegreesDouble
Estimated latitude of the camera in degrees.
referenceLongitudeDegreesDouble
Estimated longitude of the camera in degrees.
trackingStateVps2TrackingState
The state of VPS2 tracking. The other fields in this class are only valid if the tracking state is not [Vps2TrackingState.UNAVAILABLE].
trackingStateValueInt
Raw tracking state value from native (ARDK_VPS2_TrackingState).
trackingToRelativeLonNegAltLatDoubleArray
Transform from tracking to lat/lon/alt in metres relative to reference point. 4x4 flattened column-major matrix. Length is always 16.