computePerspectiveOffCenter

fun computePerspectiveOffCenter(left: Double, right: Double, bottom: Double, top: Double, near: Double, far: Double, result: Matrix4): Matrix4(source)

Computes a Matrix4 instance representing an off center perspective transformation.

Return

The modified result parameter.

Parameters

left

The number of meters to the left of the camera that will be in view.

right

The number of meters to the right of the camera that will be in view.

bottom

The number of meters below of the camera that will be in view.

top

The number of meters above of the camera that will be in view.

near

The distance to the near plane in meters.

far

The distance to the far plane in meters.

result

The object in which the result will be stored.

See also