POV-Ray : Newsgroups : povray.general : vrotate question : vrotate question Server Time
26 Sep 2022 05:01:46 EDT (-0400)
  vrotate question  
From: jr
Date: 21 Jul 2022 10:30:00
Message: <web.62d961bff5740dfe1be3cd4b6cde94f1@news.povray.org>

reading the reference for 'vrotate()'[*], I understood that all components of
'B' are used to rotate the point.  yet, with the code below, both points are
identical for a given 'i_'.  I expected different values of 'B' to result in
different "orbits", so, what am I doing wrong?

[*] <https://wiki.povray.org/content/Reference:Vector_Expressions#Functions>

regards, jr.

#version 3.7;

global_settings {assumed_gamma 1}
box {0,1}

#for (i_,0,359)
  #local p1_ = vrotate(<5,0,0>,<0,i_,45>);
  #local p2_ = vrotate(<5,0,0>,<45,i_,45>);
  #debug concat("#",str(i_,0,0)," p1 <",vstr(3,p1_,",",0,6),">.\n")
  #debug concat("#",str(i_,0,0)," p2 <",vstr(3,p2_,",",0,6),">.\n")

Post a reply to this message

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