[][src]Function nalgebra_glm::perspective_fov_lh_zo

pub fn perspective_fov_lh_zo<N: RealField>(
    fov: N,
    width: N,
    height: N,
    near: N,
    far: N
) -> TMat4<N>

Creates a matrix for a left hand perspective-view frustum with a depth range of 0 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