Skip to main content
←API Reference ←NSDK

Vps2AssetTrackingData


Declaration​

struct Vps2AssetTrackingData

Summary​

Pose of a VPS asset's origin in the device's AR tracking space. Content authored in the asset's coordinate space is placed with assetToTrackingTransform. Only served while the asset is fully tracked; see NSDKVps2Session/assetTrackingData(assetId:).


Properties​

NameTypeSummary
let assetIdString
The identifier of the asset.
let assetToTrackingTransformsimd_float4x4
Transform from the asset's coordinate space to the AR session's
world space.
let confidenceFloat
Confidence in the transform, from 0 (none) to 1 (full).
var debugDescriptionString
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the String(reflecting:)
initializer. This initializer works with any type, and uses the custom
debugDescription property for types that conform to
CustomDebugStringConvertible:
struct Point: CustomDebugStringConvertible {
let x: Int, y: Int
var debugDescription: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"
The conversion of p to a string in the assignment to s uses the
Point type's debugDescription property.
let siteIdString
The identifier of the site the asset belongs to.
let timestampMsUInt64
Timestamp of the camera frame the transform was last updated from,
in monotonic milliseconds.

Relationships​

conforms to: Swift.CustomDebugStringConvertible