private UpdateWayPoint ( CelestialBody planet, |
||
planet | CelestialBody | |
wp | ||
Résultat | void |
private void UpdateWayPoint(CelestialBody planet, WayPoint wp)
{
if (planet == null)
return;
var after = wp.next;
Deb.Log("UpdateWayPoint: {0}, next={1}", wp, after);
if (after == null)
return;
CourseUtils.BearingAndDistance(planet,
wp.lat, wp.lon, after.lat, after.lon,
out after.bearing, out after.distance);
}