2,733
edits
Red Leader (talk | contribs) mNo edit summary |
Red Leader (talk | contribs) (→Functions: Doc geo.elevation()) |
||
Line 319: | Line 319: | ||
=== elevation() === | === elevation() === | ||
{{Nasal doc | |||
|syntax = geo.elevation(lat, lon[, max_alt]); | |||
|text = Returns the elevation in metres of a certain point on the scenery. See also {{func link|geodinfo}} (which is used internally). | |||
|param1 = lat | |||
|param1text = Mandatory latitude coordinate. | |||
|param2 = lon | |||
|param2text = Mandatory longitude coordinate. | |||
|param3 = max_alt | |||
|param3text = Optional altitude in metres from which to begin searching. Defaults to 10,000 m. | |||
|example1 = var ac_pos = geo.aircraft_position(); | |||
var elev = geo.elevation(ac_pos.lat(), ac_pos.lon()); | |||
printf("Terrain elevation: %i m", elev); | |||
}} | |||
=== format() === | === format() === | ||
=== normdeg() === | === normdeg() === |