fromCamera

fun fromCamera(camera: Camera, result: Matrix4? = definedExternally): Matrix4(source)

Computes a Matrix4 instance from a Camera.

Return

The modified result parameter, or a new Matrix4 instance if one was not provided.

Parameters

camera

The camera to use.

result

The object in which the result will be stored, if undefined a new instance will be created.

See also