API reference

TrackingSpacePose Struct

Tracking space position and rotation of the anchor.
Position and rotation are both nullable Vector3 and Quaternion and might be null independently if one of them or both are invalid.
See Also
Position, IsPositionTracked, ComputeWorldPosition, Rotation, IsRotationTracked, ComputeWorldRotation

Properties

Vector3? Position[Get]
Position in tracking space of the anchor.
Null if and when the position is invalid
See Also
Rotation, ComputeWorldPosition, ComputeWorldRotation
Quaternion? Rotation[Get]
Rotation in tracking space of the Anchor.
Null if and when the rotation is invalid
See Also
Position, ComputeWorldPosition, ComputeWorldRotation
bool IsPositionTracked[Get]
Indicates whether or not the position is currently tracked.
bool IsRotationTracked[Get]
Indicates whether or not the rotation is currently tracked.

Member Functions

Vector3? ComputeWorldPosition
( Camera camera )
Computes the world space position of the anchor.
Parameters
camera
A Camera component that will be use to compute the transform to world space
Returns
The nullable Vector3 position in world space which may be null if and when Position is invalid or head pose is invalid.
See Also
Position, Rotation, ComputeWorldRotation
Exceptions
ArgumentNullException
If camera is null
Quaternion? ComputeWorldRotation
( Camera camera )
Computes the world space rotation of the anchor.
Parameters
camera
A Camera component that will be use to compute the transform to world space
Returns
The nullable Quaternion rotation in world space which may be null if and when Rotation is invalid or if head rotation is invalid.
See Also
Position, Rotation, ComputeWorldPosition
Exceptions
ArgumentNullException
If camera is null