POV-Ray : Newsgroups : povray.binaries.animations : help file ball roll : Re: help file ball roll Server Time: 9 Jul 2008 16:13:58 GMT
  Re: help file ball roll  
From: alphaQuad
Date: 5 Oct 2007 21:10:00
hey Alain.
Debug_Message this:

clamp(0.65 - 0.75,0.0,0.25) = 0.15

and should be 0.0

by my macro logic:
#macro _clamp(nn,n,m)
   #local result = nn;
   #if (nn < n) #local result = n;
   #end
   #if (nn > m) #local result = m;
   #end
   result
#end


took awhile of messin with stuff that didnt need messin with cause I assumed
clamp() would work.


Post a reply to this message

Copyright 1991-2004 POV-Team™