computePerspectiveFieldOfView

fun computePerspectiveFieldOfView(fovY: Double, aspectRatio: Double, near: Double, far: Double, result: Matrix4): Matrix4(source)

Computes a Matrix4 instance representing a perspective transformation matrix.

Return

The modified result parameter.

Parameters

fovY

The field of view along the Y axis in radians.

aspectRatio

The aspect ratio.

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