Click here to Skip to main content
15,891,837 members

Comments by dayjob (Top 1 by date)

dayjob 25-Jul-11 19:27pm View    
Deleted
The two calls to Math.Abs prevent scaling in the opposite direction eg scaling inputs 0..10 to output 400..100 (which could occur when plotting y data onto a bitmap. Also, need a divide by zero test or assert in case the output min and max are the same.