Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Solve & RotationMatrix

  • To: mathgroup at
  • Subject: [mg76031] Re: Solve & RotationMatrix
  • From: CKWong <CKWong.P at>
  • Date: Tue, 15 May 2007 04:49:30 -0400 (EDT)
  • References: <f21g0q$7d6$><f23qq6$oa3$>

I could be wrong but as I see it, the only thing that kept your
algorithm from working is that there is no Mathematica function called
RotationMatrix.  If you replace the line
RotX = RotationMatrix[\[Alpha], VectX];
RotX={ {Cos[\[Alpha]],-Sin[\[Alpha]],0}, {Sin[\[Alpha]],Cos[\[Alpha]],
0}, {0,0,1} };
and similarly for RotY and RotZ, everything should be fine.

On May 14, 5:51 pm, Mathieu G <ellocoma... at> wrote:
> CKWon... at a =E9crit :> Obviously, you need to provide the function RotationMatrix[ angle,
> > axisVector ] for the algorithm to work.
> > On the other hand, matrices for rotations about the Cartesian axes,
> > i.e., RotX,RotY, & RotZ, can be written done directly.  Why not do so?
> Hi,
> Thank you for your reply.
> I am not interested in a simple rotation matrix around an axis, but in
> finding the angles corresponding to a 3D rotation matrix.
> I compute VectN which is the vector normal to my surface, and I am
> interested in getting the rotation parameters that bring VectY to VectN.
> Regards,
> Mathieu

  • Prev by Date: Re: HoldForm
  • Next by Date: Re: v6 resizing palettes on a mac
  • Previous by thread: Re: Solve & RotationMatrix
  • Next by thread: Re: Solve & RotationMatrix