POV-Ray : Newsgroups : povray.pov4.discussion.general : Using vector components as function parameters : Using vector components as function parameters Server Time
28 Sep 2021 07:05:03 EDT (-0400)
  Using vector components as function parameters  
From: scott
Date: 20 May 2013 10:41:57
Message: <519a3635$1@news.povray.org>
How come this doesn't parse:

#local V = <0,1,2>;
#local f = function(x,y,z){ sin(x*V.x) }

but this does:

#local V = <0,1,2>;
#local Vx = V.x;
#local f = function(x,y,z){ sin(x*Vx) }


Post a reply to this message

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