(foci, mat)
return np.dot(foci, t)[:, 0:3]
Convert coordinates from one space to another using provided
    transformation matrix.
Convert coordinates from one space to another using provided
    transformation matrix.
Convert coordinates from one space to another using provided transformation matrix .
def transform(foci, mat):
    """ Convert coordinates from one space to another using provided
    transformation matrix. """
    t = linalg.pinv(mat)
    foci = np.hstack((foci, np.ones((foci.shape[0], 1))))
    return np.dot(foci, t)[:, 0:3]
def transform ( foci , mat ) : t = linalg . pinv ( mat ) foci = np . hstack ( ( foci , np . ones ( ( foci . shape [ 0 ] , 1 ) ) ) ) return np . dot ( foci , t ) [ : , 0 : 3 ]