(vec_in, vec_out)
Make **vec_out** to be an axis-aligned unit vector that is closest to vec_in. (basis?)
Make **vec_out** to be an axis-aligned unit vector that is closest to vec_in. (basis?)
Make ** vec_out ** to be an axis - aligned unit vector that is closest to vec_in . ( basis? )
def vec_to_axis_vec(vec_in, vec_out):
    '''Make **vec_out** to be an axis-aligned unit vector that is closest to vec_in. (basis?)'''
    x, y, z = vec_in
    if abs(x) > abs(y):
        if abs(x) > abs(z):
            vec_out.x = 1 if x >= 0 else -1
        else:
            vec_out.z = 1 if z >= 0 else -1
    else:
        if abs(y) > abs(z):
            vec_out.y = 1 if y >= 0 else -1
        else:
            vec_out.z = 1 if z >= 0 else -1
def vec_to_axis_vec ( vec_in , vec_out ) : x , y , z = vec_in if abs ( x ) > abs ( y ) : if abs ( x ) > abs ( z ) : vec_out . x = 1 if x >= 0 else - 1 else : vec_out . z = 1 if z >= 0 else - 1 else : if abs ( y ) > abs ( z ) : vec_out . y = 1 if y >= 0 else - 1 else : vec_out . z = 1 if z >= 0 else - 1