Thank you for all your help guys

I have checked out the source code for that book but I'm really unfamiliar with C++, maybe buying the book would help alot but I'm putting that idea on hold for now. Thank you Frank.
I need to attempt to get my head around all this and try and implement it.
Error what is the v_s variable in this code:
vec_set(tempb,s_p);
vec_sub(tempb,s_b);
vec_set(temp,v_s);
t = vec_length(tempb)/(vec_length(temp)+vec_dot(tempb,v_b));