Azimuth (south = 0°)

Discuss Celestia's features, adaptations and Addons for use in educational environments
Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 6 months
Location: Thyrrenian sea

Azimuth (south = 0°)

Post #1by Fenerit » 13.01.2013, 02:42

Tested on LUA PLUGINS only. Define a

Code: Select all

local AZIMUTH_SOUTH = true -- false, for default Az


within the "compassBox.lua" and after the string "if display_az_elev then" add:

Code: Select all

if AZIMUTH_SOUTH then
if az > 180 then
az = math.abs(180 - az)
else
az = math.abs(180 + az)
end
az_str = "Azimuth (S=0°):".." "..string.format("%4.2f°", az);
else
az_str = "Azimuth:".." "..string.format("%4.2f°", az);
end


In Celestia the compass' North will point to the 0° degree of the horizontal grid while the azimuth label will mark 180°.
Never at rest.
Massimo

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 1 month
Location: Paris France

Re: Azimuth (south = 0°)

Post #2by jogad » 13.01.2013, 17:45

Hello,

I see no problem with both northern and southern latitudes :roll:

Snap1.jpg


Everything looks good without correction :!:

:mrgreen:

Avatar
Topic author
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 6 months
Location: Thyrrenian sea

Re: Azimuth (south = 0°)

Post #3by Fenerit » 13.01.2013, 19:20

It is just an option for whom like to measure from south.

az.jpg
Never at rest.
Massimo


Return to “Celestia in Education”