computePinholeCameraAndReturnNew

fun computePinholeCameraAndReturnNew(projectionMatrix: FloatArray, modelViewMatrix: FloatArray, width: Int, height: Int): PinholeCamera

Computes pinhole camera from provided projection and model-view matrices.

Return

computed pinhole camera.

Parameters

projectionMatrix

array containing values of 4x4 matrix defining projection matrix.

modelViewMatrix

array containing values of 4x4 matrix defining model-view matrix.

width

width of viewport expressed in pixels.

height

height of viewport expressed in pixels.