setFieldOfViewFromLensIntrinsics

fun setFieldOfViewFromLensIntrinsics(xFocalLength: Float, yFocalLength: Float, xPrincipal: Float, yPrincipal: Float, xImageSize: Float, yImageSize: Float, deviceOrientation: DeviceOrientation)

Matches the field of view of the scene view to the field of view of a camera lens using the lens characteristics. All parameter values must be greater than 0.

Since

200.4.0

Parameters

xFocalLength

the pixel focal length along the x-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels

yFocalLength

the pixel focal length along the y-axis. The units are in pixels. xFocal and yFocal should be identical for square pixels

xPrincipal

the distance along the x-axis between the principal point and the top-left corner of the image frame. The units are in pixels. This must also be less than xImageSize

yPrincipal

the distance along the y-axis between the principal point and the top-left corner of the image frame. The units are in pixels. This must also be less than yImageSize.

xImageSize

the x value of the image size captured by the camera. The units are in pixels

yImageSize

the y value of the image size captured by the camera. The units are in pixels

deviceOrientation

the orientation of the device