POV-Ray : Newsgroups : povray.beta-test : the umpteenth time: removed features :( : Re: the umpteenth time: removed features :( Server Time
29 Jul 2024 08:11:49 EDT (-0400)
  Re: the umpteenth time: removed features :(  
From: Christoph Hormann
Date: 15 Jun 2002 05:10:11
Message: <3D0B0473.FD2004D6@gmx.de>
Thorsten Froehlich wrote:
> 
> [...]
> 
> There was no old behavior.  There never was a legal result being returned
> for a zero length vector and the documentation clearly stated it.  You
> cannot normalize a zero length vector, it is undefined and always was.  The
> problem was that the parser didn't catch this...
> 

Are you sure about this?  I don't think vnormalize() should return zero
for a zero length vector, but the 3.1 source i have here says:

          case VNORMALIZE_TOKEN:
            Parse_Vector_Param(Vect);
            VLength(Val,Vect);
            if (Val==0.0)
            {
              Make_Vector(Vect,0.0,0.0,0.0);
            }
            else
            {
              VInverseScaleEq(Vect,Val);
            }
            break;


Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 14 Jun. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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