POV-Ray : Newsgroups : povray.general : Probably simple ... : Probably simple ... Server Time
8 Aug 2024 01:17:33 EDT (-0400)
  Probably simple ...  
From: ingo
Date: 17 Mar 2001 06:01:20
Message: <Xns90677A8B1A12Dseed7@povray.org>
.. but can't figure it out at the moment.

I'm looking for a macro that returns a value based on an input value 
(Val) within a given input range (iMin to iMax), the ReturnVal has to 
be in the range oMin, oMax. 
Kind of like the "how to create random numbers in a range other than 0 
to 1". But then with a arbitrary input range.

#macro RVal(iMin, iMax, Val, oMin, oMax)
    	.
    	.
    	ReturnVal
#end


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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