POV-Ray : Newsgroups : povray.general : function please : Re: function please Server Time
19 Nov 2024 22:40:28 EST (-0500)
  Re: function please  
From:
Date: 21 Dec 2001 09:56:41
Message: <haj62uopsknnimj13du3mri74r844kijep@4ax.com>
On Fri, 21 Dec 2001 09:51:15 -0500, "Trevor Quayle" <Tin### [at] hotmailcom>
wrote:
> "Tom Melly" <tom### [at] tomandlucouk> wrote in message
> news:3c2349fa$1@news.povray.org...
> > what function would return 1 when x = 0 but 0 when abs(x)>=1 ?
>
> max(floor(1-abs(x)),0)

this could be wrong becouse it return 1 when x=0 but 0 for _all_ other cases.

ABX


Post a reply to this message

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