packages/pyglGA/ECSS/utilities.py
def perspective(fovy, aspect, near, far):
    """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 fovy: [description]
    :type fovy: [type]
    :param aspect: [description]
    :type aspect: [type]
    :param near: [description]
    :type near: [type]
    :param far: [description]
    :type far: [type]
    """
    _scale = 1.0/math.tan(math.radians(fovy)/2.0)
    #_scale = 1.0/math.tan(math.radians(fovy/2.0))
    sx, sy = _scale / aspect, _scale
    zz = (far + near) / (near - far)
    zw = 2 * far * near/(near - far)
    return np.array([[sx, 0,  0,  0],
                     [0,  sy, 0,  0],
                     [0,  0, zz, zw],
                     [0,  0, -1,  0]], dtype=np.float,order='F')
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 fovy: [description]
    :type fovy: [type]
    :param aspect: [description]
    :type aspect: [type]
    :param near: [description]
    :type near: [type]
    :param far: [description]
    :type far: [type]
    
Perspective projection matrix creation function, where
the viewing volume is a truncated pyramid.
Perspective projection matrix creation function where the viewing volume is a truncated pyramid .
def perspective(fovy, aspect, near, far):
    _scale = 1.0/math.tan(math.radians(fovy)/2.0)
    sx, sy = _scale / aspect, _scale
    zz = (far + near) / (near - far)
    zw = 2 * far * near/(near - far)
    return np.array([[sx, 0,  0,  0],
                     [0,  sy, 0,  0],
                     [0,  0, zz, zw],
                     [0,  0, -1,  0]], dtype=np.float,order='F')
def perspective ( fovy , aspect , near , far ) : _scale = 1.0 / math . tan ( math . radians ( fovy ) / 2.0 ) sx , sy = _scale / aspect , _scale zz = ( far + near ) / ( near - far ) zw = 2 * far * near / ( near - far ) return np . array ( [ [ sx , 0 , 0 , 0 ] , [ 0 , sy , 0 , 0 ] , [ 0 , 0 , zz , zw ] , [ 0 , 0 , - 1 , 0 ] ] , dtype = np . float , order = 'F' )
Perspective projection matrix creation function, where
the viewing volume is a truncated pyramid.
Perspective projection matrix creation function where the viewing volume is a truncated pyramid .
"""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 fovy: [description]
    :type fovy: [type]
    :param aspect: [description]
    :type aspect: [type]
    :param near: [description]
    :type near: [type]
    :param far: [description]
    :type far: [type]
    """ #_scale = 1.0/math.tan(math.radians(fovy/2.0))
fovy
None
aspect
None
near
None
far
None