Not sure what these numbers refer to in a script

All about writing scripts for Celestia in Lua and the .cel system
Topic author
ncc1701d
Posts: 29
Joined: 21.01.2006
With us: 18 years 10 months

Not sure what these numbers refer to in a script

Post #1by ncc1701d » 18.04.2008, 16:08

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

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

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

Post #2by selden » 18.04.2008, 16:19

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.
Selden


Return to “Scripting”