Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
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 ...)
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 274: Line 274:
}}
}}
==== apply_course_distance() ====
==== apply_course_distance() ====
[[File:Missiles on a map.png|thumb]]
{{Nasal doc
{{Nasal doc
|syntax = geo.Coord.direct_distance_to(course, dist);
|syntax = geo.Coord.direct_distance_to(course, dist);
Line 288: Line 289:
coord.dump(); # lat=-0.037964  lon=-0.081415
coord.dump(); # lat=-0.037964  lon=-0.081415
}}
}}
=== PositionedSearch ===
=== PositionedSearch ===


Navigation menu