| Thread Previous • Date Previous • Date Next • Thread Next |
It works! Thanks, Jerome. Cheers, CWBoon > Date: Tue, 15 Dec 2009 14:25:19 +0100 > From: jerome.duriez@xxxxxxxxxxxxxxx > To: yade-dev@xxxxxxxxxxxxxxxxxxx > Subject: Re: [Yade-dev] help with debug > > Hi, > I guess you ask this question to compute the result of the rotation > corresponding to your "Quaternion", applied to your "Vector", isn't it ? > If yes, you can use the function Rotate, defined in Wm3Quaternion > (in my not up to date version...) > > Jerome > > boon chiaweng a écrit : > > Hi, > > > > Can someone advise me how do I multiply a Quaternion.Conjugate * > > Vector * Quaternion? The following doesn't work, including the > > assignment in terms of "=" and "()". I looked at the wm3 template, > > but suspect that vector*quaternion is not supported? > > > > Vector3r localP1 = (0); > > localP1 = state1.ori.Conjugate() * tempP1 * state1.ori; > > Vector3r localP2 = (0); > > localP2 (state2.ori.Conjugate() * tempP2 * state2.ori); > > > > > > Yours, > > > > CWBoon > > > > ------------------------------------------------------------------------ > > New Windows 7: Find the right PC for you. Learn more. > > <http://windows.microsoft.com/shop> > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Mailing list: https://launchpad.net/~yade-dev > > Post to : yade-dev@xxxxxxxxxxxxxxxxxxx > > Unsubscribe : https://launchpad.net/~yade-dev > > More help : https://help.launchpad.net/ListHelp > > > > -- > Jérôme Duriez > ATER Iut 1 Grenoble, département GMP - Laboratoire 3S-R > 04.56.52.86.49 (ne pas laisser de messages sur le répondeur) > > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-dev > Post to : yade-dev@xxxxxxxxxxxxxxxxxxx > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp _________________________________________________________________ New Windows 7: Find the right PC for you. Learn more. http://windows.microsoft.com/shop
| Thread Previous • Date Previous • Date Next • Thread Next |