setValues

fun setValues(nearPlane: Float, farPlane: Float, width: Int, height: Int, camera: PinholeCamera)

Sets all required values to compute the scene camera matrix.

Parameters

nearPlane

near plane. Any vertex nearer to the camera than this value will be ignored and not drawn.

farPlane

far plane. Any vertex further from the camera than this value will be ignored and not drawn.

width

width of viewport expressed in pixels.

height

height of viewport expressed in pixels.

camera

camera to be set.

Throws

if either provided width or height is negative.

CameraException

if there are numerical instabilities in provided camera.