Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
Save
(Finish [direct_]distance_to(), plus minor things)
(Save)
Line 274: Line 274:
}}
}}
==== apply_course_distance() ====
==== apply_course_distance() ====
{{Nasal doc
|syntax = geo.Coord.direct_distance_to(course, dist);
|source = {{fgdata file|Nasal/geo.nas|t=Source}}
|text = Calculates a new coordinate from a given course and distancce, and then updates the coordinates to the new set. Returns the <code>geo.Coord</code> instance.
|param1 = course
|param1text = Mandatory course in degrees to use in calculation.
|param2 = dist
|param2text = Mandatory distance in metres to use in calculation.
|example1 = var coord = geo.Coord.new();
coord.set_latlon(0, 0);
coord.dump();
coord.apply_course_distance(245, 10000);
coord.dump();  lat=-0.037964  lon=-0.081415
}}
=== PositionedSearch ===
=== PositionedSearch ===


Navigation menu