check_and_translate_vector function

Checks arguments and translate a vector