pub fn ortho<T: RealNumber>(
left: T,
right: T,
bottom: T,
top: T,
znear: T,
zfar: T,
) -> TMat4<T>
Expand description
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