Skip to main content
API Reference NSDK PlaybackCamera

viewMatrix

Returns the view matrix (world-to-camera) for the given interface orientation....

Declaration

func viewMatrix(for orientation: UIInterfaceOrientation) -> simd_float4x4

Summary

Returns the view matrix (world-to-camera) for the given interface orientation.
Implemented as the inverse of the display-oriented transform so rendering matches the on-screen camera.