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:19:12 EDT (-0400)
  Re: 4d, 2d bugs in pov 3.1g??  
From: Chris Huff
Date: 7 Sep 1999 13:21:47
Message: <37D549F3.7B49EAEB@compuserve.com>
Just do this:
#macro vlength4d(V)
    (sqrt( V.red*V.red + V.green*V.green + V.blue*V.blue +
V.filter*V.filter ))
#end

The extra parenthesis should not be necessary, but I have had situations
before where they made a difference.


Post a reply to this message

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