# Direction Vector from Euler Angles

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

## Recommended Posts

I have 3 angles - x, y and z rotations. I need to get the direction vector for 3 local axis - x, y and z. Sounds simple, right? However, I can't find any signs of info about this in 3D. It's only telling about single angle(for 2D) everywhere, but not for 3 angle sets(3D). So how do I do it?

##### Share on other sites

You can apply the three rotations to the vectors (1,0,0), (0,1,0) and (0,0,1) and see where they end up. You either need that or the same thing but applying the inverse of the rotation, I am not sure from your post.

##### Share on other sites

You can construct multiple rotations from the euler angles, depending on the order of consecutive rotations (their multiplications that is).

If you know your order, just construct your rotation matrix and then the three columns of this matrix are exactly the direction unit vectors of respective axises when they are rotated with it.

While also, the rows of this rotation matrix are direction vectors of axises when they undercome inverse of rotation, or you can interpret the rows as directions of original axises in new base space - if the new rotation becomes the base.

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5

• 26
• 11
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633701
• Total Posts
3013446
×