Skip to main content

All Questions

1 vote
1 answer
188 views

reverse formula conversion

I have a formula which calculate position for Y, here it is: double y = ...; double minX = ..; double scaleY = ..; int MAX_COORD = (1 << 16) - 1; int sy = ~(int)((y - minY) / scaleY * MAX_COORD)...
Arkaha's user avatar
  • 1,622