Module Expr Str ImportFrom alias Import alias Import alias identifier FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assert CompareEq Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad NameLoad NameLoad NameLoad Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assert CompareEq Call NameLoad NameLoad Num Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad TupleLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore NameStore BinOpDiv NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad BinOpMult BinOpSub Num NameLoad NameLoad BinOpMult BinOpSub Num NameLoad NameLoad BinOpMult BinOpSub Num NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Num ListLoad BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Num ListLoad BinOpSub BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad Num ListLoad Num Num Num Num NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv UnaryOpUAdd Num BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv UnaryOpUSub BinOpAdd NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv UnaryOpUAdd Num BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv UnaryOpUSub BinOpAdd NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv Num BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv UnaryOpUSub BinOpAdd NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotEq NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv BinOpMult UnaryOpUAdd Num NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv BinOpAdd NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv BinOpMult UnaryOpUAdd Num NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv BinOpAdd NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv UnaryOpUSub BinOpAdd NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpDiv BinOpMult BinOpMult Num NameLoad NameLoad Call NameLoad BinOpSub NameLoad NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareNotEq NameLoad NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr BinOpMult BinOpDiv NameLoad Num AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad NameLoad Return Call NameLoad UnaryOpUSub NameLoad NameLoad UnaryOpUSub NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore NameLoad ExtSlice Slice Slice Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore NameLoad ExtSlice Slice Slice Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num For NameStore Call NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Return NameLoad decorator_list
N/A N/A 
Very simple transformation library that is needed for some examples.
 __future__ division N/A math N/A numpy np translate N/A N/A offset dtype N/A None N/A N/A Translate by an offset (x, y, z) .

    Parameters
    ----------
    offset : array-like, shape (3,)
        Translation in x, y, z.
    dtype : dtype | None
        Output type (if None, don't cast).

    Returns
    -------
    M : ndarray
        Transformation matrix describing the translation.
     N/A N/A N/A len offset 3 N/A N/A x y z offset N/A M N/A N/A np array N/A N/A 1.0 0.0 0.0 0.0 N/A 0.0 1.0 0.0 0.0 N/A 0.0 0.0 1.0 0.0 N/A x y z 1.0 dtype N/A M N/A scale N/A N/A s dtype N/A None N/A N/A Non-uniform scaling along the x, y, and z axes

    Parameters
    ----------
    s : array-like, shape (3,)
        Scaling in x, y, z.
    dtype : dtype | None
        Output type (if None, don't cast).

    Returns
    -------
    M : ndarray
        Transformation matrix describing the scaling.
     N/A N/A N/A len s 3 N/A N/A N/A np array N/A N/A np diag N/A N/A np concatenate N/A s N/A 1.0 dtype N/A rotate N/A N/A angle axis dtype N/A None N/A N/A The 3x3 rotation matrix for rotation about a vector.

    Parameters
    ----------
    angle : float
        The angle of rotation, in degrees.
    axis : ndarray
        The x, y, z coordinates of the axis direction vector.
     N/A angle N/A N/A np radians angle N/A N/A N/A len axis 3 N/A N/A x y z N/A axis N/A N/A N/A np linalg norm axis N/A N/A c s N/A N/A N/A math cos angle N/A N/A math sin angle N/A N/A cx cy cz N/A N/A N/A 1 c x N/A N/A 1 c y N/A N/A 1 c z N/A M N/A N/A N/A np array N/A N/A N/A N/A cx x c N/A N/A cy x N/A z s N/A N/A cz x N/A y s 0.0 N/A N/A N/A cx y N/A z s N/A N/A cy y c N/A N/A cz y N/A x s 0.0 N/A N/A N/A cx z N/A y s N/A N/A cy z N/A x s N/A N/A cz z c 0.0 N/A 0.0 0.0 0.0 1.0 dtype T N/A M N/A ortho N/A N/A left right bottom top znear zfar N/A N/A N/A Create orthographic projection matrix

    Parameters
    ----------
    left : float
        Left coordinate of the field of view.
    right : float
        Right coordinate of the field of view.
    bottom : float
        Bottom coordinate of the field of view.
    top : float
        Top coordinate of the field of view.
    znear : float
        Near coordinate of the field of view.
    zfar : float
        Far coordinate of the field of view.

    Returns
    -------
    M : ndarray
        Orthographic projection matrix (4x4).
     N/A N/A right left N/A N/A bottom top N/A N/A znear zfar N/A M N/A N/A np zeros N/A 4 4 dtype N/A np float32 N/A N/A M N/A N/A 0 0 N/A N/A 2.0 N/A right left N/A N/A M N/A N/A 3 0 N/A N/A N/A right left N/A float N/A right left N/A N/A M N/A N/A 1 1 N/A N/A 2.0 N/A top bottom N/A N/A M N/A N/A 3 1 N/A N/A N/A top bottom N/A float N/A top bottom N/A N/A M N/A N/A 2 2 N/A -2.0 N/A zfar znear N/A N/A M N/A N/A 3 2 N/A N/A N/A zfar znear N/A float N/A zfar znear N/A N/A M N/A N/A 3 3 1.0 N/A M N/A frustum N/A N/A left right bottom top znear zfar N/A N/A N/A Create view frustum

    Parameters
    ----------
    left : float
        Left coordinate of the field of view.
    right : float
        Right coordinate of the field of view.
    bottom : float
        Bottom coordinate of the field of view.
    top : float
        Top coordinate of the field of view.
    znear : float
        Near coordinate of the field of view.
    zfar : float
        Far coordinate of the field of view.

    Returns
    -------
    M : ndarray
        View frustum matrix (4x4).
     N/A N/A right left N/A N/A bottom top N/A N/A znear zfar N/A M N/A N/A np zeros N/A 4 4 dtype N/A np float32 N/A N/A M N/A N/A 0 0 N/A N/A N/A 2.0 znear N/A float N/A right left N/A N/A M N/A N/A 2 0 N/A N/A right left N/A float N/A right left N/A N/A M N/A N/A 1 1 N/A N/A N/A 2.0 znear N/A float N/A top bottom N/A N/A M N/A N/A 2 1 N/A N/A top bottom N/A float N/A top bottom N/A N/A M N/A N/A 2 2 N/A N/A N/A zfar znear N/A float N/A zfar znear N/A N/A M N/A N/A 3 2 N/A N/A N/A -2.0 znear zfar N/A float N/A zfar znear N/A N/A M N/A N/A 2 3 -1.0 N/A M N/A perspective N/A N/A fovy aspect znear zfar N/A N/A N/A Create perspective projection matrix

    Parameters
    ----------
    fovy : float
        The field of view along the y axis.
    aspect : float
        Aspect ratio of the view.
    znear : float
        Near coordinate of the field of view.
    zfar : float
        Far coordinate of the field of view.

    Returns
    -------
    M : ndarray
        Perspective projection matrix (4x4).
     N/A N/A znear zfar N/A h N/A N/A N/A math tan N/A N/A fovy 360.0 N/A math pi znear N/A w N/A h aspect N/A N/A frustum N/A w w N/A h h znear zfar N/A affine_map N/A N/A points1 points2 N/A N/A N/A  Find a 3D transformation matrix that maps points1 onto points2.

    Arguments are specified as arrays of four 3D coordinates, shape (4, 3).
     N/A A N/A N/A np ones N/A 4 4 N/A N/A A N/A N/A N/A 3 points1 N/A B N/A N/A np ones N/A 4 4 N/A N/A B N/A N/A N/A 3 points2 N/A matrix N/A N/A np eye 4 N/A i N/A range 3 N/A N/A N/A matrix N/A i N/A N/A N/A np linalg solve A N/A B N/A N/A N/A i N/A matrix N/A