No need for this function, you can just use len_v3v3(v_a->co, v_b->co)