POV-Ray : Newsgroups : povray.general : Transforming matrix question : Re: Transforming matrix question Server Time
28 Jul 2024 22:16:03 EDT (-0400)
  Re: Transforming matrix question  
From: clipka
Date: 28 Dec 2013 09:48:42
Message: <52bee4ca$1@news.povray.org>
Am 28.12.2013 14:27, schrieb Louis:
> "Louis" <nomail@nomail> wrote:
>> I also realized that z.z in my example would be a constant 1 instead of the
>> z-input into the function.
>
> I'm confused, will z.z be a constant one in this context, or will it be the the
> z- input just like in an ISO-surface-function?

Outside functions, "z" is a predefined vector constant evaluating to 
<0,0,1>; thus, "z.z" is the z-component of that vector, i.e. 1.

Inside functions without an explicit parameter list, "z" is the third of 
three parameters, which in an isosurface object will be the z-coordinate 
of whatever point is currently being examined. Note that with function 
parameters always being scalars, "z.z" will generate a parse error when 
used inside such a function.


Post a reply to this message

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