Function nalgebra_glm::perspective[][src]

pub fn perspective<N: Real>(aspect: N, fovy: N, near: N, far: N) -> TMat4<N>

Creates a matrix for a perspective-view frustum based on the right handedness and OpenGL near and far clip planes definition.

Important note

The aspect and fovy argument are interchanged compared to the original GLM API.