POV-Ray : Newsgroups : povray.newusers : Get only x or y or z coordinate of a vector : Get only x or y or z coordinate of a vector Server Time
24 Jun 2024 08:21:26 EDT (-0400)
  Get only x or y or z coordinate of a vector  
From: huiakso
Date: 3 Dec 2012 11:45:01
Message: <web.50bcd6dd85448a3dffcbc3c0@news.povray.org>
Is there no easy way to do that?

Something like:
#declare P1 = <1, 2, 3>
print(P1.y)
=> 2


Or do i have to maintain an extra array to achieve something like that?


Post a reply to this message

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