rel_value_of_pos_in_vector function

Find relative value of a position in a vector