POV-Ray : Newsgroups : povray.general : 4d, 2d bugs in pov 3.1g?? : Re: 4d, 2d bugs in pov 3.1g?? Server Time
11 Aug 2024 05:20:02 EDT (-0400)
  Re: 4d, 2d bugs in pov 3.1g??  
From: Ron Parker
Date: 7 Sep 1999 11:35:33
Message: <37d530c5@news.povray.org>
On Tue, 07 Sep 1999 11:03:46 -0400, Greg M. Johnson wrote:
>Okay then, can you tell this quite ignorant user how to write a macro that
>will compute the length of a 4d vector?
>I know it's simply the square root of the sum of the squares of the individual
>components.
>I actually already tried it and think I ran into some error messages...

I think you'll have to do something like
 
sqrt( V.red*V.red+V.green*V.green+V.blue*V.blue+V.filter*V.filter )

though I haven't tested it.


Post a reply to this message

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