Need help with C# function to translate smoothly between numeric ranges

Posted by Shachar Weis on Stack Overflow See other posts from Stack Overflow or by Shachar Weis
Published on 2010-03-18T16:54:22Z Indexed on 2010/03/19 0:11 UTC
Read the original article Hit count: 163

Filed under:
|
|
|

I'm trying to write a function :
Input:
Source range, Source value, output range, curve type (Linear, smooth)
Output:
The output is the "source value" converted into the "output range"
according to the curve type.

I hope I am making sense here...

Any ideas ?
Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about numerical