Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / January 2007

Tip: Looking for answers? Try searching our database.

Converting float/double to hires coords.

Thread view: 
sanbikinoraion - 12 Jan 2007 16:27 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.