POV-Ray : Newsgroups : povray.advanced-users : vlength( ) : Re: vlength( ) Server Time
2 Nov 2024 03:15:43 EDT (-0400)
  Re: vlength( )  
From: SamuelT
Date: 12 Jun 2000 18:37:00
Message: <394566DD.DAC31764@aol.com>
It's for the eval_pigment stuff I've been using. I needed to convert a color
vector into a float value so I could use it for elevation. The best way I
could think of doing this would be averaging the components of the color
vector. I'm now using a macro instead of vlength, and it works great.

Warp wrote:

>   What are you trying to do?
>   The average of the components of a vector doesn't sound like anything
> rational. The length of a vector sound much more useful.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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