compute Pinhole Camera
fun computePinholeCamera(projectionMatrix: FloatArray, modelViewMatrix: FloatArray, width: Int, height: Int, result: PinholeCamera)
Computes pinhole camera from provided projection and model-view matrices.
Parameters
projection Matrix
array containing values of 4x4 matrix defining projection matrix.
model View Matrix
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.