[−][src]Function nalgebra_glm::perspective_fov
pub fn perspective_fov<N: Real>(
fov: N,
width: N,
height: N,
near: N,
far: N
) -> TMat4<N>
Creates a matrix for a right hand perspective-view frustum with a depth range of -1 to 1
Parameters
fov
- Field of view, in radianswidth
- Width of the viewportheight
- Height of the viewportnear
- Distance from the viewer to the near clipping planefar
- Distance from the viewer to the far clipping plane