packages/pyglGA/ECSS/utilities.py
def ortho(left, right, bottom, top, near, far):
    """ Orthographic projection matrix creation function, where 
    the viewing volume is a rectangular parallelepiped, or more informally, a box. 
    Original projection matrices defined in http://www.glprogramming.com/red/appendixf.html
    and in http://www.glprogramming.com/red/chapter03.html. Tested also again glm similar 
    functions.
    For more on projections check: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/ 
    
    :param left: [coordinates of projection unit cube]
    :type left: [float]
    :param right: [coordinates of projection unit cube]
    :type right: [float]
    :param bottom: [coordinates of projection unit cube]
    :type bottom: [float]
    :param top: [coordinates of projection unit cube]
    :type top: [float]
    :param near: [coordinates of near clipping plane]
    :type near: [float]
    :param far: [coordinates of far clipping plane]
    :type far: [float]
    """
    dx, dy, dz = right - left, top - bottom, far - near
    rx, ry, rz = -(right+left) / dx, -(top+bottom) / dy, -(far+near) / dz
    return np.array([
                    [2/dx, 0,    0,     rx],
                     [0,    2/dy, 0,     ry],
                     [0,    0,    -2/dz, rz],
                     [0,    0,    0,     1]
                     ], dtype=np.float,order='F')
 Orthographic projection matrix creation function, where 
    the viewing volume is a rectangular parallelepiped, or more informally, a box. 
    Original projection matrices defined in http://www.glprogramming.com/red/appendixf.html
    and in http://www.glprogramming.com/red/chapter03.html. Tested also again glm similar 
    functions.
    For more on projections check: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/ 
    
    :param left: [coordinates of projection unit cube]
    :type left: [float]
    :param right: [coordinates of projection unit cube]
    :type right: [float]
    :param bottom: [coordinates of projection unit cube]
    :type bottom: [float]
    :param top: [coordinates of projection unit cube]
    :type top: [float]
    :param near: [coordinates of near clipping plane]
    :type near: [float]
    :param far: [coordinates of far clipping plane]
    :type far: [float]
    
Orthographic projection matrix creation function, where
the viewing volume is a rectangular parallelepiped, or more informally, a box.
Orthographic projection matrix creation function where the viewing volume is a rectangular parallelepiped or more informally a box .
def ortho(left, right, bottom, top, near, far):
    dx, dy, dz = right - left, top - bottom, far - near
    rx, ry, rz = -(right+left) / dx, -(top+bottom) / dy, -(far+near) / dz
    return np.array([
                    [2/dx, 0,    0,     rx],
                     [0,    2/dy, 0,     ry],
                     [0,    0,    -2/dz, rz],
                     [0,    0,    0,     1]
                     ], dtype=np.float,order='F')
def ortho ( left , right , bottom , top , near , far ) : dx , dy , dz = right - left , top - bottom , far - near rx , ry , rz = - ( right + left ) / dx , - ( top + bottom ) / dy , - ( far + near ) / dz return np . array ( [ [ 2 / dx , 0 , 0 , rx ] , [ 0 , 2 / dy , 0 , ry ] , [ 0 , 0 , - 2 / dz , rz ] , [ 0 , 0 , 0 , 1 ] ] , dtype = np . float , order = 'F' )
Orthographic projection matrix creation function, where
the viewing volume is a rectangular parallelepiped, or more informally, a box.
Orthographic projection matrix creation function where the viewing volume is a rectangular parallelepiped or more informally a box .
""" Orthographic projection matrix creation function, where 
    the viewing volume is a rectangular parallelepiped, or more informally, a box. 
    Original projection matrices defined in http://www.glprogramming.com/red/appendixf.html
    and in http://www.glprogramming.com/red/chapter03.html. Tested also again glm similar 
    functions.
    For more on projections check: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/ 
    
    :param left: [coordinates of projection unit cube]
    :type left: [float]
    :param right: [coordinates of projection unit cube]
    :type right: [float]
    :param bottom: [coordinates of projection unit cube]
    :type bottom: [float]
    :param top: [coordinates of projection unit cube]
    :type top: [float]
    :param near: [coordinates of near clipping plane]
    :type near: [float]
    :param far: [coordinates of far clipping plane]
    :type far: [float]
    """
left
[coordinates of projection unit cube]
[ coordinates of projection unit cube ]
right
[coordinates of projection unit cube]
[ coordinates of projection unit cube ]
bottom
[coordinates of projection unit cube]
[ coordinates of projection unit cube ]
top
[coordinates of projection unit cube]
[ coordinates of projection unit cube ]
near
[coordinates of near clipping plane]
[ coordinates of near clipping plane ]
far
[coordinates of far clipping plane]
[ coordinates of far clipping plane ]