POV-Ray : Newsgroups : povray.advanced-users : vector.x is a float, isn't it? : Re: vector.x is a float, isn't it? Server Time
3 Jul 2024 04:44:02 EDT (-0400)
  Re: vector.x is a float, isn't it?  
From: Chris B
Date: 13 Jul 2008 18:22:14
Message: <487a8016@news.povray.org>
"slehar" <sle### [at] gmailcom> wrote in message 
news:web.487a73ecc7f877ecf75a90cb0@news.povray.org...
>
> Can someone please explain to me why I ***can't*** do this?
>
> CODE >>>>
>  #declare myVector = <1,2>
>
>  atan2(myVector.y,myVector.x)

#declare myVector = <1,2>;
#debug concat("myAngle: ", str(atan2(myVector.y,myVector.x),3,3),"\n")

writes "myAngle: 1.107" into the message stream for me on 3.6 under Windows.
What version are you running?

Regards,
Chris B.


Post a reply to this message

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