def calc_vector_lineal_combination_params(a_t, b_t, v_t):
    """
    Calculates the linear combination of 2 vector (a_t and b_t) to be a third (v_t).
    :param a_t: vector 1
    :param b_t: vector 2
    :param v_t: target vector
    :return: a, b values that makes a * a_t + b * b_t == v_t
    """
    divider = (a_t[1] * b_t[0] - a_t[0] * b_t[1])
    if divider == 0:
        divider_2 = (v_t[1] * b_t[0] - v_t[0] * b_t[1])
        if not divider_2 == 0:
            a = v_t[0] / b_t[0]
        else:
            print("Vectors not combinable")
            a = 0
    else:
        a = (b_t[0] * v_t[1] - b_t[1] * v_t[0]) / divider

    if not b_t[0] == 0:
        b = (v_t[0] - a * a_t[0]) / b_t[0]
    else:
        b = (v_t[1] - a * a_t[1]) / b_t[1]
    return a, b