Last post Mar 02, 2016 05:29 PM by PatriceSc
Feb 25, 2013 07:01 AM|tonytj|LINK
Assume I have on the x-axes the display area from x=40 pixels to x=750
pixels because I have some text to the far left so the x -axis start at position x = 40
If I now want to set a lot of point in this coordinate system.
For example if I have x-value 0 this would be positioned at x = 40 and
x-value 800 would be positioned at x=750.
So I have to transform my x value into the coordinate system where origo for
x is 40 and x max is 800.
I can't find a suitable algoritm that can transform my x values into this
Mar 02, 2016 05:29 PM|PatriceSc|LINK
So you want to map (0,800) to (0,710) and then add 40. So it should be a formula such as :