(self)
return np.array([right, up, forward]), pos
Returns a tuple with camera transform.

    The transform comes in form: (3x3 rotation mtx, 3-component position).
Returns a tuple with camera transform.
Returns a tuple with camera transform .
def transform(self):
    """Returns a tuple with camera transform.

    The transform comes in form: (3x3 rotation mtx, 3-component position).
    """
    pos = np.zeros(3)
    forward = np.zeros(3)
    up = np.zeros(3)
    for i in range(3):
      forward[i] = self._scene.camera[0].forward[i]
      up[i] = self._scene.camera[0].up[i]
      pos[i] = (self._scene.camera[0].pos[i] + self._scene.camera[1].pos[i]) / 2
    right = np.cross(forward, up)
    return np.array([right, up, forward]), pos
def transform ( self ) : pos = np . zeros ( 3 ) forward = np . zeros ( 3 ) up = np . zeros ( 3 ) for i in range ( 3 ) : forward [ i ] = self . _scene . camera [ 0 ] . forward [ i ] up [ i ] = self . _scene . camera [ 0 ] . up [ i ] pos [ i ] = ( self . _scene . camera [ 0 ] . pos [ i ] + self . _scene . camera [ 1 ] . pos [ i ] ) / 2 right = np . cross ( forward , up ) return np . array ( [ right , up , forward ] ) , pos