Exemplo n.º 1
0
void
OrderedTask::ScanDistanceMinMax(const GeoPoint &location, bool force,
                                double *dmin, double *dmax)
{
  if (force)
    *dmax = ScanDistanceMax();

  *dmin = ScanDistanceMin(location, force);
}
Exemplo n.º 2
0
void
OrderedTask::ScanDistanceMinMax(const GeoPoint &location, bool force,
                                fixed *dmin, fixed *dmax)
{
  if (!taskpoint_start)
    return;

  if (force)
    *dmax = ScanDistanceMax();

  *dmin = ScanDistanceMin(location, force);
}
Exemplo n.º 3
0
void
OrderedTask::ScanDistanceMinMax(const GeoPoint &location, bool force,
                                fixed *dmin, fixed *dmax)
{
  if (!taskpoint_start)
    return;

  if (force)
    *dmax = ScanDistanceMax();

  bool force_min = force || DistanceIsSignificant(location, last_min_location);
  *dmin = ScanDistanceMin(location, force_min);
}