perspective

fun perspective(verticalFieldOfViewRadians: Float, aspectRatio: Float, near: Float, far: Float): Matrix4f(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.