Skip to main content
API Reference com.nianticspatial.nsdk.playback PlaybackCamera

getViewMatrix

World-to-camera view matrix (column-major) for the given display orientation. Inverse of [displayOrientedTransform]. Pass to OpenGL/GLES as the view matrix.

Declaration

fun getViewMatrix(deviceDisplayOrientation: Orientation? = null): FloatArray

Summary

World-to-camera view matrix (column-major) for the given display orientation. Inverse of [displayOrientedTransform]. Pass to OpenGL/GLES as the view matrix.