POV-Ray : Newsgroups : povray.binaries.scene-files : quaternions.inc : Re: QSample1.pov - Basic sample for using quaternions.inc for rotation Server Time
28 Apr 2024 23:35:49 EDT (-0400)
  Re: QSample1.pov - Basic sample for using quaternions.inc for rotation  
From: Tor Olav Kristensen
Date: 7 Oct 2003 16:27:11
Message: <Xns940DE434D5FC0torolavkhotmailcom@204.213.191.226>
I forgot to mention that in the Qsc() macro, you should
enclose the returned expression in parentheses.


Like this:


#macro Qsc(Q)

  (Q.x*Q.x + Q.y*Q.y + Q.z*Q.z + Q.t*Q.t)

#end // macro Qsc


Tor Olav


Post a reply to this message

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