perspective

inline fun <T : Number, Comparable<T>> perspective(fovY: Angle<T>, aspect: T, near: T, far: T): Mat4<T>
fun <T : Number, Comparable<T>> perspective(fovY: Angle<T>, aspect: T, near: T, far: T, type: KClass<T>): Mat4<T>

Creates a projection matrix for a perspective projection defined by a given frustum.

The frustum is defined by its near and far depth clipping planes, and its field of view angle in the Y direction and aspect ratio between X and Y field of view.