Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
→‎Functions: Doc tile_index() and tile_path()
(→‎Functions: Doc tile_index() and tile_path())
Line 403: Line 403:


=== tile_index() ===
=== tile_index() ===
{{Nasal doc
|syntax = geo.tile_index(lat, lon);
|text = Returns the current tile's index. Effectively a wrapper for {{func link|tileIndex}}.
|param1 = lat
|param1text = Mandatory latitude coordinate.
|param2 = lon
|param2text = Mandatory longitude coordinate.
|example1 = var ac_pos = geo.aircraft_position();
print(geo.tile_index(ac_pos.lat(), ac_pos.lon())); # prints the index of the current tile
}}
=== tile_path() ===
=== tile_path() ===
{{Nasal doc
|syntax = geo.tile_path(lat, lon);
|text = Returns the current tile's path under <tt>''[[$FG_SCENERY]]/Terrain''</tt>.
|param1 = lat
|param1text = Mandatory latitude coordinate.
|param2 = lon
|param2text = Mandatory longitude coordinate.
|example1 = var ac_pos = geo.aircraft_position();
printfinddata(geo.tile_path(ac_pos.lat(), ac_pos.lon())); # prints the path of the current
}}
=== viewer_position() ===
=== viewer_position() ===


Navigation menu