I need a function which dynamically simulate a line function for example
r(t) = r0 + t * v;
where r0 is the 3D point on the line, v is the direction vector. The value of t can only be obtained dynamically. And when the function is fixed, I can send some points to test if they are on the line. Is there a good solution to do this in c++ please??