Rotating Vectors: How to Rotate a Vector 90 Degrees Towards a Specific Direction

  • Thread starter Thread starter sparkzbarca
  • Start date Start date
  • Tags Tags
    Rotating Vector
Click For Summary
SUMMARY

The discussion focuses on rotating a normalized vector {0,1,0} by 90 degrees towards another vector X using the cross product method. The user seeks clarity on converting vectors to angles and the appropriate use of rotation matrices. It is established that a rotation matrix can effectively rotate a vector around a specified axis, which is crucial for achieving the desired transformation. The user successfully resolves their query after receiving guidance on the rotation matrix concept.

PREREQUISITES
  • Understanding of normalized vectors
  • Knowledge of the cross product operation
  • Familiarity with rotation matrices
  • Basic concepts of angles and radians
NEXT STEPS
  • Study the properties and applications of rotation matrices
  • Learn how to implement vector rotations in programming languages such as Python or C++
  • Explore the mathematical foundations of vector transformations
  • Investigate the use of quaternions for 3D rotations
USEFUL FOR

Mathematicians, game developers, and software engineers involved in graphics programming or physics simulations who need to understand vector rotations and transformations.

sparkzbarca
Messages
7
Reaction score
0
This isn't actually a homework question, I'm programming something, it's just what should be fairly simple math I'm just not certain how to do it.

Assume I have a normalized vector which points directly up {0,1,0}.

I also have another vector X.

I'd like to rotate vector X along the

crossmultiply(up,vector x) axis
(i know how to cross multiply)

90 degrees towards {0,1,0}

but basically i'd no idea how to convert vectors to angles or maybe I need to use radians,
if it helps the axis and the up can be normalized so that it can be assumed your working on the unit circle if that makes it easier to find.

If you could help me or even just point me to a web resource that helps that'd be appreciated, i tried looking up vectors to angles but didn't really seem to get anywhere.
 
Physics news on Phys.org
sparkzbarca said:
This isn't actually a homework question, I'm programming something, it's just what should be fairly simple math I'm just not certain how to do it.

Assume I have a normalized vector which points directly up {0,1,0}.

I also have another vector X.

I'd like to rotate vector X along the

crossmultiply(up,vector x) axis
?
I don't know what you mean by this. You don't rotate a vector along an axis - you rotate it around some vector.
sparkzbarca said:
(i know how to cross multiply)

90 degrees towards {0,1,0}

but basically i'd no idea how to convert vectors to angles or maybe I need to use radians,
if it helps the axis and the up can be normalized so that it can be assumed your working on the unit circle if that makes it easier to find.

If you could help me or even just point me to a web resource that helps that'd be appreciated, i tried looking up vectors to angles but didn't really seem to get anywhere.

You can use a rotation matrix to rotate a vector. See the wiki article, http://en.wikipedia.org/wiki/Rotation_matrix.
 
Oh i understand a vector rotates around another vector but to me at least axis is short for the vector around which something rotates. I believe I solved the dilemma but thank you!
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 18 ·
Replies
18
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
7
Views
2K
Replies
8
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K