Sounds like you are looking for a direction vector. To get a vector along the line from point A to B, just subtract A from B. If you only want the direction information from the line, not length (called magnitude in this context), you will want to normalize the result. You may want to spend a little bit of time reading up on this:
http://en.wikipedia.org/wiki/Euclidean_vector HTH, -Ken On Fri, Jul 23, 2010 at 9:55 AM, Darcey Lloyd <[email protected]>wrote: > Hi all, > > I was wondering if you could point me in the right direction for working > out how to animate a line segment in the direction it's pointing in... > > So I know it's creation point but I need the exponential from the direction > it's facing if that's the right wording? > > Or how do I get facing and exponential of two number3Ds? > > Thanks > > Darcey > > ps. > Cheers for fixing Trident Fabrice :) >
