I have two sets of pixel coordinates that represent a bounding box:
top left:
x: 19757934
y: 25240264
bottom right:
x: 19759195
y: 25240776
I need to convert another point’s coordinates, that are on a different number range into the above range, maintaining the original ratio (to find out where this point is located within the bounding box).
x: 423
y: 142
Suppose there is a box the user clicks on, which does something to a “result” box somewhere else, like a scaled down box.