Hi,
Does anyone know of any way of easily converting floats or doubles into
hires coords? My plan is to use a locale for each planet in the solar
system, and write a custom rotationinterpolator that will rotate the
locales around the sun locale. My plan was to store and manipulate the
coordinates of the planets in an easier-to-use form than hires coords,
and then scale the doubles up to hi-res coords once the new planet
position has been calculated.
Any help in this matter would be greatly appreciated.
Cheers,
-sanbikinoraion
Thomas Enzinger - 13 Jan 2007 22:06 GMT
Hallo,
it is easy
double doux = 12.345;
String dx = String.valueOf(doux);
dx = dx.split(".")[0];
int[] x = new int[8];
....
denn Rest darfst du selbst herausfinden ;-)
MfG,
Thomas