Page 1 of 1

Not sure what these numbers refer to in a script

Posted: 18.04.2008, 16:08
by ncc1701d
Hi
The following line below I was analysizing shows how to add labels to Venus
but I dont know what "0.1" and "1e2" refer to?
I have tryed modifing those numbers but I see no visable change when looking/testing the lable out.
Anyone know what those numbers refer to in the script line below?


Location "-20" "Sol/Venus" {LongLat [ 0 20 0.1 ] Size 1e2 Type "City"}

thank you in advance.
steve

Re: Not sure what these numbers refer to in a script

Posted: 18.04.2008, 16:19
by selden
Steve,

You probably should read the documentation for Location entries in the Celestia WikiBook at http://en.wikibooks.org/wiki/Celestia/S ... at_Alt_.5D
(the 3rd number in brackets is the altitude in km)

As in other situations, like Radius, the notation "NeN" (where the two Ns are numbers) is scientific notation. 1e2 = 1 followed by 2 zeros i.e. 100. It's often easier to write the code for a program to emit a single digit instead of emiting that many zeros.