POV-Ray : Newsgroups : povray.newusers : Problem with #switch : Re: Problem with #switch Server Time: 6 Jul 2008 23:19:59 GMT
  Re: Problem with #switch  
From: Archpawn
Date: 12 Feb 2008 00:55:01
"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 1991-2004 POV-Team™