klyn.math.geometry.Matrix4.perspective
method
public static perspective(verticalAngle as Double, aspect as Double, near as Double, far as Double) as Matrix4
Description

Perspective projection (OpenGL depth [-1,1]); vertical angle in radians.

Throws
  • ValueException For invalid frustum parameters. Example: projection = Matrix4.perspective(Math.PI / 4.0, 1.5, 0.01, 100.0)