POV-Ray : Newsgroups : povray.beta-test : Sign()? Conditional expression? : Re: Sign()? Conditional expression? Server Time
29 Jul 2024 10:18:21 EDT (-0400)
  Re: Sign()? Conditional expression?  
From: Christoph Hormann
Date: 24 May 2002 08:53:07
Message: <3CEE37B3.B08CA36D@gmx.de>
"Greg M. Johnson" wrote:
> 
> As we get closer to the wire, it's possible my questions are getting dumber,
> BUT:
> 
> 1) I don't see a sign () function:  did we let a whole new release slip by
> without this addition?

from math.inc:

#declare sgn = function (V) {select(V,-1, 0, 1)}

Christoph

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


Post a reply to this message

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