POV-Ray : Newsgroups : povray.binaries.scene-files : RotateList.inc : Re: RotateList.inc Server Time
2 Sep 2024 10:13:21 EDT (-0400)
  Re: RotateList.inc  
From: Frits van Bommel
Date: 25 Nov 2001 04:48:54
Message: <3c00be86$1@news.povray.org>
Thanks, great work. Just one comment:

  #macro xyz(px,py,pz)
    #local vx = vrotate(vrotate(vrotate(x,px*x),py*y),pz*z);
    #local vy = vrotate(vrotate(vrotate(y,px*x),py*y),pz*z);
    #local vz = vrotate(vrotate(vrotate(z,px*x),py*y),pz*z);
    getrotation(vx,vy,vz)
  #end

could be done somewhat shorter like this

  #macro xyz(px,py,pz)
    <px,py,pz>
  #end

;-)
I imagine this is also faster, especially when used a lot.

    Frits van Bommel


Post a reply to this message

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