Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
m
m (→‎apply_course_distance(): recycle screenshot from Scripted AI Objects (still need to find the original code, which would make for a nice example here, and which should be roughly 12 lines of code ...))
Line 276: Line 276:
[[File:Missiles on a map.png|thumb]]
[[File:Missiles on a map.png|thumb]]
{{Nasal doc
{{Nasal doc
|syntax = geo.Coord.direct_distance_to(course, dist);
|syntax = geo.Coord.apply_course_distance(course, dist);
|source = {{fgdata file|Nasal/geo.nas|t=Source}}
|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.
|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.

Navigation menu