giuseppe500

09-30-2011, 08:42 AM

hello.

I'm a beginner.

How i can calculate the direction vector if I have two point A and B?

I'm in a tree dimensional space with opengl then A={1,1,0} and B={2,2,1} for example.

Is sufficent do B - A ? or is different A - B?

The direction is a 3d vector?

Thanks.

I'm a beginner.

How i can calculate the direction vector if I have two point A and B?

I'm in a tree dimensional space with opengl then A={1,1,0} and B={2,2,1} for example.

Is sufficent do B - A ? or is different A - B?

The direction is a 3d vector?

Thanks.