computeModelViewMatrixAndReturnNew

Computes model-view matrix using provided pinhole camera.

The model-view matrix defines the amount of translation and rotation between the camera and vertices to be drawn in the scene.

Return

16-length array containing model-view matrix values.

Parameters

camera

pinhole camera.


fun computeModelViewMatrixAndReturnNew(cameraRotation: Rotation3D, cameraCenter: Point3D): FloatArray

Computes model-view matrix using provided camera rotation and center.

The model-view matrix defines the amount of translation and rotation between the camera and vertices to be drawn in the scene.

Return

16-length array containing model-view matrix values.

Parameters

cameraRotation

camera rotation.

cameraCenter

camera center.


fun computeModelViewMatrixAndReturnNew(rotationMatrix: Matrix, cameraCenter: Point3D): FloatArray

Computes model-view matrix using provided camera rotation and center.

The model-view matrix defines the amount of translation and rotation between the camera and vertices to be drawn in the scene.

Return

16-length array containing model-view matrix values.

Parameters

rotationMatrix

3x3 matrix defining camera rotation. This matrix must be orthonormal.

cameraCenter

camera center.