[]Function rusty_engine::prelude::glm::ortho_zo

pub fn ortho_zo<N>(
    left: N,
    right: N,
    bottom: N,
    top: N,
    znear: N,
    zfar: N
) -> Matrix<N, U4, U4, <DefaultAllocator as Allocator<N, U4, U4>>::Buffer> where
    N: RealField

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