POV-Ray : Newsgroups : povray.binaries.scene-files : quaternions.inc (fixed) : Re: quaternions.inc (fixed) Server Time
2 Sep 2024 00:18:19 EDT (-0400)
  Re: quaternions.inc (fixed)  
From: None
Date: 10 Oct 2003 17:48:07
Message: <Xns9410B51A87EFANone@204.213.191.226>
Another note:  someone mentionned to me that an orientation they were 
incrementing might not be working.

It's important to keep in mind that (quoted from my Calculus book, which, 
by the way, only barely mentions quaternions): "quaternions do not obey the 
commutative law (that is, A * B != B * A); this was the first algebra in 
which such behavior was studied."

So the order of multiplication is important.

Basically, if you have an orientation qO and you want to increment it with 
the orientation qI, you will want to multiply them like this:

    	#declare q0 = QMultiply(qI,qO);

That will work, the other way around might yield unexpected results.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.