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

orientationForRendering


Declaration​

@JvmStatic fun orientationForRendering(deviceDisplayOrientation: Orientation): Orientation

Summary​

Converts device display orientation (Android UI convention: ROTATION_90 → LANDSCAPE_LEFT)
to the internal sensor convention. Used by getDisplayOrientedPose, getViewMatrix, and
getProjectionMatrix when a non-null orientation is passed. Exposed for use with
displayOrientedTransform if needed. Keep FrameData.screenOrientation in UI convention
for meshing and other NSDK consumers.

Parameters​

NameTypeSummary
deviceDisplayOrientationOrientation
-