2,733
edits
Red Leader (talk | contribs) |
Red Leader (talk | contribs) |
||
Line 238: | Line 238: | ||
|syntax = geo.Coord.course_to(coord); | |syntax = geo.Coord.course_to(coord); | ||
|source = {{fgdata file|Nasal/geo.nas|t=Source}} | |source = {{fgdata file|Nasal/geo.nas|t=Source}} | ||
|text = Returns the initial bearing (see [http://www.movable-type.co.uk/scripts/latlong.html#bearing here]) to another <code>geo.Coord</code> instance. The bearing will be in the range 0–360. | |text = Returns the initial bearing (see [http://www.movable-type.co.uk/scripts/latlong.html#bearing here]) to another <code>geo.Coord</code> instance. The bearing will be an {{wikipedia|absolute bearing}} (in the range 0–360). | ||
|param1 = coord | |param1 = coord | ||
|param1text = Mandatory <code>geo.Coord</code> instance to calculate bearing to. | |param1text = Mandatory <code>geo.Coord</code> instance to calculate bearing to. | ||
Line 247: | Line 247: | ||
printf("%.5f", c1.course_to(c2)); # prints "44.99564" | printf("%.5f", c1.course_to(c2)); # prints "44.99564" | ||
}} | }} | ||
==== distance_to() ==== | ==== distance_to() ==== | ||
{{Nasal doc | {{Nasal doc |