rotation matrix

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

Recommended Posts

How would I go about setting up a rotation matrix to rotate a set of points that are all on one plane to be oriented onto another plane? The points lie on some arbitrary plane in R3 formed by the black line, and i would like to rotate them to all be oriented along the xy plane, (0,0,1). What would be the easiest way to do this?

Share on other sites
The easiest way would probably be to determine the axis-angle rotation, and then convert that to a rotation matrix. What you do is take the cross product between the plane normal and (0,0,1) to get the rotation axis, and the dot product to get the rotation angle as per the dot-product formula |a||b|cos(θ). You can then reference this page on how to create the rotation matrix. Once you get everything working, a lot of the operations can be optimized, such as the cross-product and dot-product, since you're working with a constant vector (0,0,1).

Share on other sites
That seemed to do the trick, thanks.

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5

• 13
• 26
• 10
• 11
• 9
• Forum Statistics

• Total Topics
633723
• Total Posts
3013556
×