perspective

fun perspective(verticalFieldOfViewRadians: Double, aspectRatio: Double, near: Double, far: Double): Matrix4d(source)

Right-handed perspective, looking down negative Z, with normalized depth -1, 1. Requires finite 0 < field of view < PI, aspect > 0 and 0 < near < far.