Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.XRSubsystems ←XRVps2Subsystem

GetPose

Convert a position and orientation in the global coordinate system to a pose in the device's AR tracking space.

Declaration​

public XRVps2Pose GetPose(XRVps2Localization localization, LocationInfo location)

Summary​

Convert a Unity LocationInfo to a pose in the device's AR tracking space using the provided localization.

Returns​

The AR pose corresponding to the given location.

Parameters​

NameTypeSummary
localizationXRVps2Localization
-
latitudedouble
-
longitudedouble
-
altitudedouble
-
orientationEdnQuaternion
-

Overload​

public XRVps2Pose GetPose(XRVps2Localization localization, double latitude, double longitude, double altitude, Quaternion orientationEdn)

Summary​

Convert a position and orientation in the global coordinate system to a pose in the device's AR tracking space.

Remarks​

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.

Parameters​

NameTypeSummary
localizationXRVps2Localization
-
latitudedouble
-
longitudedouble
-
altitudedouble
-
orientationEdnQuaternion
-