packages/pyglGA/ECSS/utilities.py
def frustum(xmin, xmax, ymin, ymax, zmin, zmax):
    """Alternative Perspective projection matrix creation function, where 
    the viewing volume is a truncated pyramid. 
    Original projection matrices defined in http://www.glprogramming.com/red/appendixf.html
    and in http://www.glprogramming.com/red/chapter03.html and 
    https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPerspective.xml 
    Tested also again glm similar functions.

    :param xmin: [description]
    :type xmin: [type]
    :param xmax: [description]
    :type xmax: [type]
    :param ymin: [description]
    :type ymin: [type]
    :param ymax: [description]
    :type ymax: [type]
    :param zmin: [description]
    :type zmin: [type]
    :param zmax: [description]
    :type zmax: [type]
    """
    a = (xmax+xmin) / (xmax-xmin)
    b = (ymax+ymin) / (ymax-ymin)
    c = -(zmax+zmin) / (zmax-zmin)
    d = -2*zmax*zmin / (zmax-zmin)
    sx = 2*zmin / (xmax-xmin)
    sy = 2*zmin / (ymax-ymin)
    return np.array([[sx, 0,  a, 0],
                     [0, sy,  b, 0],
                     [0,  0,  c, d],
                     [0,  0, -1, 0]], dtype=np.float,order='F')
Alternative Perspective projection matrix creation function, where 
    the viewing volume is a truncated pyramid. 
    Original projection matrices defined in http://www.glprogramming.com/red/appendixf.html
    and in http://www.glprogramming.com/red/chapter03.html and 
    https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPerspective.xml 
    Tested also again glm similar functions.

    :param xmin: [description]
    :type xmin: [type]
    :param xmax: [description]
    :type xmax: [type]
    :param ymin: [description]
    :type ymin: [type]
    :param ymax: [description]
    :type ymax: [type]
    :param zmin: [description]
    :type zmin: [type]
    :param zmax: [description]
    :type zmax: [type]
    
Alternative Perspective projection matrix creation function, where
the viewing volume is a truncated pyramid.
Alternative Perspective projection matrix creation function where the viewing volume is a truncated pyramid .
def frustum(xmin, xmax, ymin, ymax, zmin, zmax):
    a = (xmax+xmin) / (xmax-xmin)
    b = (ymax+ymin) / (ymax-ymin)
    c = -(zmax+zmin) / (zmax-zmin)
    d = -2*zmax*zmin / (zmax-zmin)
    sx = 2*zmin / (xmax-xmin)
    sy = 2*zmin / (ymax-ymin)
    return np.array([[sx, 0,  a, 0],
                     [0, sy,  b, 0],
                     [0,  0,  c, d],
                     [0,  0, -1, 0]], dtype=np.float,order='F')
def frustum ( xmin , xmax , ymin , ymax , zmin , zmax ) : a = ( xmax + xmin ) / ( xmax - xmin ) b = ( ymax + ymin ) / ( ymax - ymin ) c = - ( zmax + zmin ) / ( zmax - zmin ) d = - 2 * zmax * zmin / ( zmax - zmin ) sx = 2 * zmin / ( xmax - xmin ) sy = 2 * zmin / ( ymax - ymin ) return np . array ( [ [ sx , 0 , a , 0 ] , [ 0 , sy , b , 0 ] , [ 0 , 0 , c , d ] , [ 0 , 0 , - 1 , 0 ] ] , dtype = np . float , order = 'F' )
Alternative Perspective projection matrix creation function, where
the viewing volume is a truncated pyramid.
Alternative Perspective projection matrix creation function where the viewing volume is a truncated pyramid .
"""Alternative Perspective projection matrix creation function, where 
    the viewing volume is a truncated pyramid. 
    Original projection matrices defined in http://www.glprogramming.com/red/appendixf.html
    and in http://www.glprogramming.com/red/chapter03.html and 
    https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPerspective.xml 
    Tested also again glm similar functions.

    :param xmin: [description]
    :type xmin: [type]
    :param xmax: [description]
    :type xmax: [type]
    :param ymin: [description]
    :type ymin: [type]
    :param ymax: [description]
    :type ymax: [type]
    :param zmin: [description]
    :type zmin: [type]
    :param zmax: [description]
    :type zmax: [type]
    """
xmin
None
xmax
None
ymin
None
ymax
None
zmin
None
zmax
None