POV-Ray : Newsgroups : povray.newusers : max(0,min(1,x)) : Re: max(0,min(1,x)) Server Time
5 Sep 2024 00:17:23 EDT (-0400)
  Re: max(0,min(1,x))  
From: Thorsten Froehlich
Date: 3 Oct 2002 11:45:31
Message: <3d9c661b@news.povray.org>
In article <Xns### [at] 204213191226>, "Rafal 'Raf256' Maj"
<raf### [at] raf256com> wrote:

> Ok, but I do NOT want to code it ok ? I think I will implement a clip() for
> a "warm-up" and to get better along with pov's sources. Maybe inlining
> alsow - someday... :)

Never with the current code, I am sure...

> With files (and best - function names/lines) :
>
> * have formulas for some literal functions like pow(a,b) ? (I want to see
> how it's done)
>
> * now what should I do to add my own function (real-function) like i.e.
> my_function(a,b) and I want it's formula to be i.e.  (a+b)  for tests
> reasons. I quess I will have to change parser code, and functions code ?
>
> * now I want to add function like  my_function(a,b,c) - it should be very
> simmilar probably ?

<http://www.abx.art.pl/pov/patches/f_triangle.php>

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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