[][src]Function nalgebra_glm::perspective_fov_no

pub fn perspective_fov_no<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 radians
  • width - Width of the viewport
  • height - Height of the viewport
  • near - Distance from the viewer to the near clipping plane
  • far - Distance from the viewer to the far clipping plane