Function: transformRgbToDepthUv()
transformRgbToDepthUv(
rgbUv,renderCameraWorldFromClip,depthCameraClipFromWorld,xrDeviceCamera?):null| {u:number;v:number; }
Defined in: src/camera/CameraUtils.ts:110
Maps a UV coordinate from a RGB space to a destination depth space, applying Brown-Conrady distortion and affine transformations based on aspect ratios. If the simulator camera is used, no transformation is applied.
Parameters
rgbUv
The RGB UV coordinate, e.g., { u: 0.5, v: 0.5 }.
u
number
v
number
renderCameraWorldFromClip
Render camera world from clip, i.e. inverse of the View Projection matrix.
depthCameraClipFromWorld
Depth camera clip from world, i.e.
xrDeviceCamera?
The device camera instance.
Returns
null | { u: number; v: number; }
The transformed UV coordinate in the depth image space, or null if inputs are invalid.