POV-Ray : Newsgroups : povray.newusers : Two meanings of x? : Re: Two meanings of x? Server Time
30 Jul 2024 22:27:42 EDT (-0400)
  Re: Two meanings of x?  
From: ABX
Date: 5 Aug 2003 14:55:34
Message: <h4vvivoqml30opn7ro2qcoovk6j8igve4c@4ax.com>
On Tue,  5 Aug 2003 14:36:51 EDT, "Dave Matthews" <mat### [at] dinecollegeedu>
wrote:
> 1.  If, inside a function, x, y and z are components of some vector, what's
> the name of the vector?  (So I can do a myvector.x in the #if statement.)

Instead of writing:

  function{MyVector.x + 1}

you can write something like:

  #local MyX=MyVector.x;
  function{MyX + 1}

ABX


Post a reply to this message

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