@m.h.shanazary I assume you mean you have three points on the line segment. In that case, just choose any two points and calculate the vector (p1 - p0) and normalize it. The direction of the vector would depend on which points you choose as p1 and p0.