|
|
hi,
the manual defines: "vrotate(A,B) Rotate A about origin by B." yet when I
rotate a simple point, at 180 degrees the output is .. unexpected, not <-1,0,0>.
can someone please explain ?
#version 3.8;
global_settings {assumed_gamma 1}
box {0,1}
#declare P = <1,0,0>;
#debug concat("rot 000 : ",vstr(3,vrotate(P,0),",",0,2),"\n")
#debug concat("rot 090 : ",vstr(3,vrotate(P,90),",",0,2),"\n")
#debug concat("rot 180 : ",vstr(3,vrotate(P,180),",",0,2),"\n")
#debug concat("rot 270 : ",vstr(3,vrotate(P,270),",",0,2),"\n")
Persistence of Vision(tm) Ray Tracer Version 3.8.0-alpha.9945627.unofficial
....
==== [Parsing...] ==========================================================
rot 000 : 1.00,0.00,0.00
rot 090 : 0.00,0.00,-1.00
rot 180 : 1.00,-0.00,-0.00
rot 270 : 0.00,0.00,1.00
regards, jr.
Post a reply to this message
|
|