vector math question

   2465   1   0
User Avatar
Member
313 posts
Joined: July 2005
Offline
hi there,

if I have 2 points, say (x,y,z) and (h,i,j) , then I connect them together becomes a line.

how can I find the vector (direction) of that line?

thanks for your attention!
User Avatar
Member
4262 posts
Joined: July 2005
Offline
A vector from one point to another is simply found by subtracting the origin from the destination.

vector3(h-x,i-y,j-z)
if(coffees<2,round(float),float)
  • Quick Links