In a sol system 2d simulation I have some problems in showing the entire system (ie: eaven planets far away than saturn ) letting distinguibles the nearest planet orbits.
Actualy a use a simple scaling logic like this
double _x = W / 2.0 + ((x ) / maxW) * W; double _y = H / 2.0 + ((y ) / maxH) * H;
x is real planet x position (assuming sun at origin (0,0))
y is real planet y position
W is canvas width (i.e 512)
H is canvas height (i.e 512)
maxH are the system real border (or the portion I decide to simulate) : in the example I put
maxW = maxH = 20.0 * 149597870700.0; (20 times the sun earth distance)
What I ask : there's a methot to calculate a (non linear) scaling that let show a bigger portion of the system but keeping some distance between objects near the center ?
EDIT: Here what I get if I enlarge the system borders:
maxW = maxH = 60.0 * 149597870700.0; (60 times the sun earth distance(UA) )