def quangle(a, b):
    x = a.cross(b)
    w = a.magnitude() * b.magnitude() + a.dot(b)
    return Q(x[0], x[1], x[2], w)
Find a quaternion that rotates one 3d vector to parallel another.
dataset/ETHPy150Open hhatto/autopep8/test/vectors_example.py/quangle