Contents

transform

The transformation matrix that converts between the device’s coordinate space to the position of the view in that space.

Declaration

var transform: simd_float4x4 { get }

Discussion

When you generate a frame, you specify a pose matrix that indicates the device’s position and orientation in the world coordinate space. When the device is a head-mounted display, the view for each eye has an additional matrix to specify the position of that eye relative to the device’s pose. Multiply the device’s pose matrix by the returned matrix to obtain the view’s location in the world coordinate space.

See Also

Getting the transformations