2,733
edits
Red Leader (talk | contribs) (Finish [direct_]distance_to(), plus minor things) |
Red Leader (talk | contribs) (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 === | ||