|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |