POV-Ray : Newsgroups : povray.general : Math: helix wrap around a circle : Re: Math: helix wrap around a circle Server Time
11 Aug 2024 03:32:45 EDT (-0400)
  Re: Math: helix wrap around a circle  
From: Nieminen Juha
Date: 14 Sep 1999 06:48:37
Message: <37de2805@news.povray.org>
Greg M. Johnson <gre### [at] my-dejanewscom> wrote:
: How can this be done? Can declare a point, then rotate it later, then
: later on use it as the position of an object?

  You can apply to a vector all the tranformations you can apply to an
object:

object { MyObject translate Amount }
#declare MyVector=MyVector+Amount;

object { MyObject scale Amount }
#declare MyVector=MyVector*Amount;

object { MyObject rotate Amount }
#declare MyVector=vrotate(MyVector,Amount);

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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