POV-Ray : Newsgroups : povray.newusers : Problem with #switch : Re: Problem with #switch Server Time
28 Jul 2024 18:23:54 EDT (-0400)
  Re: Problem with #switch  
From: Archpawn
Date: 11 Feb 2008 19:55:01
Message: <web.47b0ee232c0eb4439c37dbc40@news.povray.org>
"Mike the Elder" <nomail@nomail> wrote:
> I think you need to specify where the returned value is to be stored:
> ...
On http://www.povray.org/documentation/view/3.6.1/243/ , it gives the example
#macro Interpolate(T,T1,T2,P1,P2)
   (P1+(T1+T/(T2-T1))*(P2-P1))
#end
Which essentially replaces Interpolate(T,T1,T2,P1,P2) with
(P1+(T1+T/(T2-T1))*(P2-P1)).


Post a reply to this message

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