computePinholeCamera

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

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

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.

result

instance where computed pinhole camera will be stored.