POV-Ray : Newsgroups : povray.general : function please : Re: function please Server Time
19 Nov 2024 22:36:10 EST (-0500)
  Re: function please  
From: Trevor Quayle
Date: 21 Dec 2001 09:58:48
Message: <3c234e28$1@news.povray.org>

news: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

Oops, a bit too hasty, didn't really read the fine print there. Thought he
wanted 1 for x=0 and 0 for everything else.

-tgq


Post a reply to this message

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