POV-Ray : Newsgroups : povray.binaries.animations : help file ball roll : Re: help file ball roll Server Time
27 Jun 2024 17:36:04 EDT (-0400)
  Re: help file ball roll  
From: alphaQuad
Date: 5 Oct 2007 17:10:00
Message: <web.4706a6ad6849f39ce1613fbd0@news.povray.org>
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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.