I'm trying to convert a coordinate from one coordinate system to another, so that I can draw it on an image.
Basically the destination coordinate system is as follows:
X range: 0 to 1066 Y range: 0 to 1600
(just a standard image I'm drawing onto with the size of 1066 x 1600)
The position I'm trying to draw onto the image actually has the exact same size, but the coordinate system is different. The span all of the coordinates is 1066x1600.
But a coordinate example would be:
(111.33f, 1408.41f) (-212.87f, 1225.16f)
The range of this coordinate system is:
X range: -533.333 to 533.333 Y range: 533.333 to 2133.333
I feel like this is VERY simple math, but for some reason I'm not getting it.
How can I convert the coordinates provided into the first coordinate system?