[−]Function rusty_engine::prelude::glm::ortho
pub fn ortho<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 matrix for a right hand orthographic-view frustum with a depth range of -1 to 1
Parameters
left
- Coordinate for left bound of matrixright
- Coordinate for right bound of matrixbottom
- Coordinate for bottom bound of matrixtop
- Coordinate for top bound of matrixznear
- Distance from the viewer to the near clipping planezfar
- Distance from the viewer to the far clipping plane