I want to draw some vectors and few sprites in a 2D world.Problem is that they should be precise. For example a vector has position (5000000.65,556666). That depends on user. He might want to add something at 10,5 or 5000000.65,556666 !
Using a viewport with proper transform I can draw these on screen. However GDI+ I use works with floats. In case I zoom eg: 2x viewport's translate will be 5000000.65 *2 which wont fit into a float. It gets worse with larger zooms.
One solution seems a write custom matrix with doubles to perform transform from and to screen coords. The downside is that when panning/moving I have to recaclulate all vectors positions
Divide the world in smaller parts. However this complex to me and seems to not take care of all cases.
Is there any better solution ?