예제 #1
0
파일: TaskLeg.cpp 프로젝트: Advi42/XCSoar
double
TaskLeg::ScanDistanceScored(const GeoPoint &ref) const
{
  return GetScoredDistance(ref) +
    (GetNext() ? GetNext()->ScanDistanceScored(ref) : 0);
}
예제 #2
0
파일: TaskLeg.cpp 프로젝트: damianob/xcsoar
fixed 
TaskLeg::ScanDistanceScored(const GeoPoint &ref) const
{
  return GetScoredDistance(ref) +
    (GetNext() ? GetNext()->ScanDistanceScored(ref) : fixed_zero);
}