POV-Ray : Newsgroups : povray.general : Error - missing semicolon when using macro : Re: Error - missing semicolon when using macro Server Time
5 Feb 2023 00:18:36 EST (-0500)
  Re: Error - missing semicolon when using macro  
From: Tom A 
Date: 21 Jan 2023 23:50:00
Message: <web.63ccbfff6284db5a1742c61c57ffd389@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:

>
> Here's my take on the min(max()) variant:
>
>
> #macro Subclock2(Start, Complete, Cnt)
>
>     min(max(0, (Cnt - Start)/(Complete - Start)), 1)
>
> #end // macro Subclock2
>

Thanks all.  And I do like that min-max solution.

Tom A.


Post a reply to this message

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