Enjoy an ad free experience by logging in. Not a member yet? Register.

Results 1 to 4 of 4

10052009, 10:09 PM #1
 Join Date
 Jun 2007
 Location
 USA
 Posts
 527
 Thanks
 26
 Thanked 74 Times in 72 Posts
Getting angles to rotate plane to some normal
I was wondering if anyone knows to calculate any set of angles to rotate a plane with a normal n to a specified normal n' (or n'). It does not matter at what point on the plane it gets rotated about.
Trinithis
10052009, 11:47 PM
#2
 Join Date
 Dec 2007
 Posts
 6,682
 Thanks
 436
 Thanked 890 Times in 879 Posts
10062009, 01:01 AM
#3
 Join Date
 Jun 2007
 Location
 USA
 Posts
 527
 Thanks
 26
 Thanked 74 Times in 72 Posts
Doesn't that only work in 2D? For 3D I would need (xRot, yRot, zRot) for each of the axes.
Trinithis
10062009, 01:46 AM
#4
 Join Date
 Dec 2007
 Posts
 6,682
 Thanks
 436
 Thanked 890 Times in 879 Posts
work for any dimension of the space because scalar product and vector size is redefined.( that if the space is liniar)
Code:<x1, ..., xn> , <y1, ..., yn> = x1*y1 + ... + xn * ynthe angle is in the plane defined by vectors x and y.Code: <x1, ..., xn>  = sqrt(x1^2 + ...+ xn^2)
best regards