Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Euler rotation angles

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46746] Re: Euler rotation angles
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Fri, 5 Mar 2004 01:46:52 -0500 (EST)
  • References: <c26gc5$e28$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Mathematica can find a set of angles but the rotations are not unique

Needs["Geometry`Rotations`"];

vec1 = {1, 2, 3};

vec2 = Rotate3D[vec1, .25, .1, .4];

eqn=Thread[Rotate3D[vec1, phi,theta,psi] == vec2];

soln=FindRoot[eqn, {{phi, .1, .2}, {theta, .2, .3}, {psi, .3, .4}}]

{phi -> -1.3171, 
  theta -> 0.112368, psi -> 1.78946}

(Rotate3D[vec1, phi, theta, psi]-vec2) /. soln // Chop

{0,0,0}


Bob Hanlon

In article <c26gc5$e28$1 at smc.vnet.net>, sam_campbell at hotmail.com (S. Campbell)
wrote:

<< Can anyone help me with the following? I have two vectors, one rotated
with respect to the other, and I wish to find the Euler rotation
angles that connect the vectors. Can mathematica tell me what the
required angles are?


  • Prev by Date: NDSolve and time-delayed equations?
  • Next by Date: Creating my own cell
  • Previous by thread: Re: Euler rotation angles
  • Next by thread: Re: Euler rotation angles