Archived

This topic is now archived and is closed to further replies.

Create a direction from 2 3D points

This topic is 4943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay so I''m being redundant but I just have one last question. Lets say I have 2 #d points and I want to build a direction vector. Do I subtract 2 from 1 then normailize the vector to get the direction? Nick

Share this post


Link to post
Share on other sites
Lets have 2 points, a and b.
To get direction from a to b you just: normalise(b-a).
Depending on what you want the direction vector for you may be able to skip the normalisation part.

[edited by - SoulSpectre on May 31, 2004 9:20:19 PM]

Share this post


Link to post
Share on other sites