How can I determine an orthogonal vector to a given vector in 3D space?

  • Thread starter Thread starter rocketman123
  • Start date Start date
  • Tags Tags
    Orthogonal Vector
Click For Summary
SUMMARY

To determine an orthogonal vector in 3D space, one can utilize the cross product method. Given a directional vector, such as <-1, 2, 3>, and a standard up vector, typically <0, 1, 0>, the horizontal vector can be calculated by taking the cross product of the directional vector and the up vector. Subsequently, the proper up vector can be derived by taking the cross product of the horizontal vector and the directional vector. This method ensures that the resulting vectors are orthogonal to the original directional vector.

PREREQUISITES
  • Understanding of vector mathematics
  • Familiarity with cross product operations
  • Basic knowledge of 3D coordinate systems
  • Experience with 3D plotting software
NEXT STEPS
  • Learn about cross product properties in 3D vectors
  • Explore 3D graphics programming with OpenGL
  • Investigate vector normalization techniques
  • Research 3D visualization tools for plotting vectors
USEFUL FOR

This discussion is beneficial for computer graphics developers, game developers, and anyone involved in 3D modeling or simulations requiring vector calculations.

rocketman123
Messages
1
Reaction score
0
Hey guys,

Given a vector, ie < -1, 2, 3 > , how does one go about finding a vector which is orthogonal to it?

I also have another vector < x, y ,z > which is the point of origin for the above vector.

In context, I'm given a directional vector from which I need to find an 'up' vector and a 'horizontal' vector. You can see here http://www.cs.auckland.ac.nz/~jli023/images/opengl/pov-ray/viewplaneAnglechanged.jpg - I have a 'look_at' vector and must determine a suitable up and right vector.

I know that to get the right/ horiztonal vector I can just take the cross product between the directional / look at vector and the up vector. However, how to get the up vector confuses me.

A standard up vector is <0 1 0 >. Would it make sense to take the cross product of <0 1 0 > and the direction vector - to get the horizontal vector. And then take the cross product of the horizontal and directional vectors to get the proper up vector? It makes sense to me, however I have no real way of checking if my answer is correct! - I need to find some nice 3d plotting software hehe

Cheers,
Dan
 
Physics news on Phys.org
Welcome to PF!

Hi Dan! Welcome to PF! :smile:

I'm confused :confused: … surely all up vectors are the same?

(and not orthogonal to the 'look at' vector)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K