Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Quaternions XYZW and WXYZ


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 greenzone   Members   -  Reputation: 672

Like
0Likes
Like

Posted 20 September 2012 - 09:03 AM

I'm using quaternions in my program. My layout for the quaternion is w,x,y,z. I am trying to set up physx in my program and it uses quaternions that are laid out x,y,z,w. if i wanted to over load the = operator for the two would does the order of the lay out matter? or would i just set them to equal like pairs. x=x y=y z=z w=w? or is there some mathematical reason why the lay out is important that i am unaware of?

Thanks
J-GREEN

Greenpanoply

Sponsor:

#2 Álvaro   Crossbones+   -  Reputation: 13933

Like
1Likes
Like

Posted 20 September 2012 - 09:10 AM

Ni, the layout doesn't matter. Assigning component by component should work just fine.

#3 greenzone   Members   -  Reputation: 672

Like
0Likes
Like

Posted 20 September 2012 - 10:46 AM

Thanks for the help alvaro :)
J-GREEN

Greenpanoply




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS