|
|
If I run this sdl:
#debug "\nStart of Process\n"
#debug #concat ("\n atan2= ", str( degrees(atan2(5,16)),2,6), "\n")
#declare Pos =
vrotate ( <0,0,16>, <-degrees(atan2(5,16)), 0, 0> );
#debug #concat ("\n y= ", str( Pos.y,2,6), "\n")
#debug #concat ("\n z= ", str( Pos.z,2,6), "\n")
#debug "\nEnd of Process\n"
I get this result:
Start of Process
atan2= 17.354025
y= 4.772400
z= 15.271680
End of Process
On the face of it I looks like either vrotate or atan2 is only accurate
to within 5% ?
I would have expected more accuracy. Are my expectations wrong? Is my
thinking wrong? Am I invoking the functions wrong? Using debug wrong?
This is running MegaPov 1.0 on XP and Athlon 64
Post a reply to this message
|
|