Function nalgebra_glm::ortho_lh

source ·
pub fn ortho_lh<T: RealNumber>(
    left: T,
    right: T,
    bottom: T,
    top: T,
    znear: T,
    zfar: T
) -> TMat4<T>
Expand description

Creates a left hand matrix for a orthographic-view frustum with a depth range of -1 to 1

Parameters

  • left - Coordinate for left bound of matrix
  • right - Coordinate for right bound of matrix
  • bottom - Coordinate for bottom bound of matrix
  • top - Coordinate for top bound of matrix
  • znear - Distance from the viewer to the near clipping plane
  • zfar - Distance from the viewer to the far clipping plane